ussy.py 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import discord
  2. from discord.ext.commands import Cog
  3. import re
  4. def setup(bot: discord.Bot):
  5. bot.add_cog(Ussy(bot))
  6. class Ussy(Cog):
  7. """Negative reinforcement for alph's brain"""
  8. def __init__(self, bot: discord.Bot):
  9. self.bot: discord.Bot = bot
  10. print("Initialized Ussy cog")
  11. @Cog.listener()
  12. async def on_message(self, message: discord.Message):
  13. if message.author.id == self.bot.user.id:
  14. return
  15. r = re.compile(
  16. r'''
  17. \b
  18. [a-zA-Z]*
  19. ussy
  20. \b
  21. ''', re.VERBOSE | re.IGNORECASE
  22. )
  23. matches = { m.lower() for m in r.findall(message.content) }
  24. check = matches - {
  25. # special cases
  26. 'cyberbussy', # this bot's nickname includes "ussy"
  27. # 4 letter words
  28. 'ussy', # we need a way to refer to the bare suffix
  29. '-ussy',
  30. # 5 letter words
  31. 'bussy', # this is a word now, albeit the one that started the trend
  32. 'cussy', # from "cuss", i.e. using offensive language
  33. 'fussy',
  34. 'gussy',
  35. 'hussy',
  36. 'jussy', # a commune in france and a municipality in geneva switzerland
  37. 'mussy', # having been mussed; messy, rumpled; (2) "mercy" in AAVE
  38. 'pussy',
  39. 'sussy', # more sus than ussy, it gets the trash emoji already
  40. 'wussy',
  41. # 6 letter words
  42. 'moussy', # having the qualities of mousse
  43. # 7 letter words
  44. 'ampussy', # obsolete term for "ampersand" (&)
  45. 'mucussy', # full of mucus
  46. 'chaussy',
  47. 'debussy',
  48. 'proussy',
  49. 'unfussy',
  50. 'virussy', # full of or similar to viruses
  51. # 8 letter words
  52. 'asspussy', # vulgar slang highlighting the fuckability of the anus
  53. 'ass-pussy',
  54. 'boipussy', # same as above
  55. 'boi-pussy',
  56. 'boypussy', # same as above
  57. 'boy-pussy',
  58. 'circussy', # resembling a circus
  59. 'citrussy', # having citrus-like qualities
  60. 'henhussy', # a girl who tends chickens
  61. 'manpussy', # same as boypussy
  62. 'man-pussy',
  63. 'nonfussy',
  64. # 9 letter words
  65. 'octopussy', # similar to an octopus
  66. 'overfussy',
  67. # 10 letter words
  68. 'mouthpussy', # like "asspussy" but for the mouth
  69. 'superpussy',
  70. 'tussymussy', # alternate spelling of tussie-mussie, historically used in Victorian times to refer to a nosegay* given by one person to another to convey a message in the language of flowers**. *nosegay = like a small bouquet of flowers intended to be put up to your nose and smelt, **language of flowers = floriography
  71. 'tussy-mussy',
  72. # 11 letter words
  73. 'pocketpussy' # apparently this can be used as one word
  74. }
  75. if check:
  76. await message.reply(
  77. "https://media.discordapp.net/attachments/809278919815200810/955624419219369994/ussy.jpg",
  78. mention_author=False
  79. )