mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
Move to SQLite (#13)
This commit is contained in:
parent
750ddb7762
commit
1799b70bc1
50 changed files with 2122 additions and 394 deletions
|
@ -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.
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue