Skip to content

Commit

Permalink
Merge pull request #16 from ColoradoSchoolOfMines/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
JaydenPahukula authored Sep 7, 2023
2 parents 757fb08 + 1a07f22 commit 423e129
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 298 deletions.
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

0 comments on commit 423e129

Please sign in to comment.