Skip to content

Commit f29c10d

Browse files
authored
Merge pull request #2154 from eliocamp/clearpronouns
pronouns: add `.clearpronouns` command
2 parents bef83dc + 8a4eed1 commit f29c10d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sopel/modules/pronouns.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,10 @@ 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("Okay, I'll forget your pronouns.")

0 commit comments

Comments
 (0)