Skip to content

Commit 3b2fb79

Browse files
eliocampdgw
authored andcommitted
pronouns: add .clearpronouns command
1 parent 1b5c207 commit 3b2fb79

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sopel/modules/pronouns.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,12 @@ def set_pronouns(bot, trigger):
120120
bot.reply(
121121
"Thanks for telling me! I'll remember you use {}.{}".format(pronouns, disambig)
122122
)
123+
124+
125+
@plugin.command('clearpronouns')
126+
def unset_pronouns(bot, trigger):
127+
"""Clear pronouns for the given user."""
128+
bot.db.delete_nick_value(trigger.nick, 'pronouns')
129+
bot.reply(
130+
"Okay. I'll forget your pronouns."
131+
)

0 commit comments

Comments
 (0)