Skip to content

Commit

Permalink
!consent now checks for # of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
WhereIsX committed May 4, 2021
1 parent 8e18c81 commit 0ae216b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chatty/commands/consent.cr
Expand Up @@ -5,6 +5,10 @@ Command.new(
name: "!consent",
description: "whether the bot can @ you in chat; !consent <revoke/give> "
) do |ircm|
if ircm.words.size < 2
next "you wat, it's !consent <revoke/give>"
end

update = Command::Update.parse?(ircm.words[1])
ducky = Model::Ducky.find_by(username: ircm.username)

Expand Down

0 comments on commit 0ae216b

Please sign in to comment.