summary refs log tree commit diff
path: root/src/system/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/mod.rs')
-rw-r--r--src/system/mod.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/system/mod.rs b/src/system/mod.rs
index cb3f040..c33c481 100644
--- a/src/system/mod.rs
+++ b/src/system/mod.rs
@@ -26,7 +26,6 @@ impl Manager {
             followed_user: NonZeroU64::try_from(system_config.reference_user_id.parse::<u64>().unwrap()).unwrap().into(),
             command_prefix: "!".to_string(),
             members: system_config.members.iter().map(|member| Member {
-                name: member.name.clone(),
                 discord_token: member.discord_token.clone(),
                 user_id: Arc::new(Mutex::new(None)),
                 message_pattern: member.message_pattern.clone(),
@@ -72,8 +71,8 @@ impl Manager {
                                 .unwrap_or_else(|| by_command.get(first_word.get(0..1).unwrap())) {
                                     logger.log_line(None, format!("Handling command: {command:?}")).await;
                                     let args : Vec<_> = match command {
-                                        plugin::PluginCommand::Long(_) => words.collect(),
-                                        plugin::PluginCommand::Short(_) => once(first_word).chain(words).collect(),
+                                        plugin::PluginCommand::Word(_) => words.collect(),
+                                        plugin::PluginCommand::Char(_) => once(first_word).chain(words).collect(),
                                     };
 
                                     plugin.handle_command(&logger, &system, &message, *command, args).await;