Skip to content

Commit

Permalink
pronouns: add .clearpronouns command
Browse files Browse the repository at this point in the history
  • Loading branch information
eliocamp authored and dgw committed Jul 11, 2021
1 parent 1b5c207 commit 8a4eed1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sopel/modules/pronouns.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,10 @@ def set_pronouns(bot, trigger):
bot.reply(
"Thanks for telling me! I'll remember you use {}.{}".format(pronouns, disambig)
)


@plugin.command('clearpronouns')
def unset_pronouns(bot, trigger):
"""Clear pronouns for the given user."""
bot.db.delete_nick_value(trigger.nick, 'pronouns')
bot.reply("Okay, I'll forget your pronouns.")

0 comments on commit 8a4eed1

Please sign in to comment.