Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #16

Merged
merged 3 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
269 changes: 0 additions & 269 deletions cogs/calendar.py

This file was deleted.

26 changes: 0 additions & 26 deletions cogs/loot.py

This file was deleted.

21 changes: 21 additions & 0 deletions cogs/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import discord
from discord.ext import commands

class Test(commands.Cog):
# create the slash command group called 'test', accessed with /test [COMMAND]
test = discord.SlashCommandGroup("test", "for testing purposes")

def __init__(self, bot : discord.Bot):
self.bot = bot

# create a command called 'hello'
@test.command(description="Say Hi!")
async def hello(self, ctx):
# do stuff here
await ctx.respond(f"Hello <@{ctx.author.id}>!")

def setup(bot):
bot.add_cog(Test(bot))

def teardown(bot):
bot.remove_cog('Test')
7 changes: 4 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
DEBUG_GUILDS = models.get_env_safe(models.ENVs.DEBUG_GUILDS).split(',')
bot = discord.Bot(debug_guilds=DEBUG_GUILDS)
extensions = [
"loot",
"test",
"roles",
"calendar",
]

@bot.event
async def on_ready():
print(f'{bot.user} is ready and online!')
print(f'\n{bot.user} is ready and online!')
print(f'Connected to {len(bot.guilds)} Guilds:')
print('\n'.join([f' - {guild} ({guild.id})' for guild in bot.guilds]))
logging.info(f'{bot.user} is ready and online!')
logging.info(f'Connected to {len(bot.guilds)} Guilds:')
for guild in bot.guilds:
Expand Down