Move to SQLite (#13)

This commit is contained in:
Natsu Kagami 2021-06-19 22:36:17 +09:00 committed by GitHub
parent 750ddb7762
commit 1799b70bc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 2122 additions and 394 deletions

View file

@ -95,7 +95,7 @@ async fn pick(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
.peekable();
// If we have the first argument as question, use it.
let question = match choices.peek() {
Some(ref q) if q.starts_with("?") => Some(q.replacen("?", "", 1) + "?"),
Some(ref q) if q.starts_with('?') => Some(q.replacen("?", "", 1) + "?"),
_ => None,
};
// If we have a question, that's not a choice.

View file

@ -10,7 +10,7 @@ pub fn name_from_userid(u: UserId) -> (&'static str, &'static str) {
)
}
const FIRST_NAMES: [&'static str; 440] = [
const FIRST_NAMES: [&str; 440] = [
// A Female names
"Ai",
"Aiko",
@ -473,7 +473,7 @@ const FIRST_NAMES: [&'static str; 440] = [
"Yusuke",
];
const LAST_NAMES: [&'static str; 1051] = [
const LAST_NAMES: [&str; 1051] = [
// A Surnames
"Abe",
"Abukara",