allthingslinux / tux

Tux is an all in one bot for the All Things Linux discord server.
https://discord.gg/linux
GNU General Public License v3.0
85 stars 25 forks source link

I started making a level command :3 #559

Closed AmilieCoding closed 1 month ago

AmilieCoding commented 1 month ago

It's not useful but I hope its a good start :3

Summary by Sourcery

Add a new 'level' command to the Discord bot, enabling users to view their current level and experience points through an embedded message.

New Features:

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request introduces a new 'level' command as part of a leveling system. The implementation adds a new file 'levels.py' in the 'tux/cogs/fun/' directory, setting up the basic structure for a Levels cog in a Discord bot using the discord.py library.

File-Level Changes

Change Details Files
Implement a new 'level' command in a Levels cog
  • Create a new Levels cog class
  • Implement a hybrid command group named 'level' with an alias 'lvl'
  • Add a placeholder response for the level command
  • Set up the cog to be added to the bot
tux/cogs/fun/levels.py
Set up basic structure for future expansion of the leveling system
  • Import necessary modules and classes
  • Initialize an empty list 'usermessages' for potential future use
  • Create a guild-only command to ensure it's used in server contexts
tux/cogs/fun/levels.py

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.