Browse Source

Add back in speak and remove restrictions on memes.

main
Nichole Mattera 10 months ago
parent
commit
66fd5ff8c7
  1. 8
      Robocop.py
  2. 11
      cogs/admin.py
  3. 6
      cogs/meme.py
  4. 4
      config_template.py

8
Robocop.py

@ -38,8 +38,12 @@ intents = discord.Intents.default()
intents.typing = False
intents.members = True
bot = commands.Bot(command_prefix=get_prefix, pm_help=True,
description=config.bot_description, intents=intents)
bot = commands.Bot(
command_prefix=get_prefix,
pm_help=True,
description=config.bot_description,
intents=intents,
)
bot.log = log

11
cogs/admin.py

@ -29,7 +29,9 @@ class Admin(Cog):
@commands.check(check_if_bot_manager)
@commands.command()
async def pull(self, ctx, auto=False):
await ctx.send("Fuck off. This doesn't belong in production code! Bother Nichole instead.")
await ctx.send(
"Fuck off. This doesn't belong in production code! Bother Nichole instead."
)
@commands.guild_only()
@commands.check(check_if_bot_manager)
@ -78,6 +80,13 @@ class Admin(Cog):
self.bot.log.info(f"Reloaded ext {ext}")
await ctx.send(f":white_check_mark: `{ext}` successfully reloaded.")
@commands.guild_only()
@commands.check(check_if_bot_manager)
@commands.command()
async def speak(self, ctx, channel: discord.TextChannel, *, the_text: str):
"""Repeats a given text in a given channel, staff only."""
await channel.send(the_text)
def setup(bot):
bot.add_cog(Admin(bot))

6
cogs/meme.py

@ -144,7 +144,7 @@ class Meme(Cog):
"""test"""
await ctx.send("https://www.youtube.com/watch?v=VmarNEsjpDI")
@commands.check(check_if_staff)
@commands.check(check_if_verified)
@commands.command(hidden=True, aliases=["bs", "biracy", ":b:iracy", "🅱iracy"])
async def batches(self, ctx):
"""Yeet"""
@ -152,7 +152,7 @@ class Meme(Cog):
"🅱or 🅱irated 🅱shop-🅱ames 🅱ou 🅱eed 🅱S 🅱ignature 🅱atches. 🅱s 🅱heir 🅱nly 🅱urpose 🅱s 🅱o 🅱llow 🅱iracy 🅱e're 🅱ot 🅱roviding 🅱ny 🅱elp 🅱ith 🅱nstallation 🅱f 🅱aid 🅱atches 🅱r 🅱irated 🅱ames 🅱fterwards"
)
@commands.check(check_if_staff)
@commands.check(check_if_verified)
@commands.command(aliases=["egg32"])
async def eggsfat(self, ctx):
"""Displays a unhelpful message on why not to use eggsFAT"""
@ -173,7 +173,7 @@ class Meme(Cog):
await ctx.send(content=message_text, embed=embed)
@commands.guild_only()
@commands.check(check_if_staff)
@commands.check(check_if_verified)
@commands.command(hidden=True, aliases=["toilet"])
async def flush(self, ctx, target: discord.Member):
"""Flushes Lucy uwu"""

4
config_template.py

@ -27,10 +27,10 @@ staff_role_ids = [
botlog_channel = 123456789098765432
# Rules channel used by the List Cog
rules_channel = 123456789098765432
rules_channel = 123456789098765432
# Used for uploading raw text files for list editing.
list_files_channel = 123456789098765432
list_files_channel = 123456789098765432
# Channels that are lists that are controlled by the lists cog.
list_channels = [123456789098765432]
Loading…
Cancel
Save