Skip to content

Commit

Permalink
Merge pull request #2154 from eliocamp/clearpronouns
Browse files Browse the repository at this point in the history
pronouns: add `.clearpronouns` command
  • Loading branch information
dgw authored Jul 12, 2021
2 parents bef83dc + 8a4eed1 commit f29c10d
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 f29c10d

Please sign in to comment.