Skip to content

Commit

Permalink
add prefix to config
Browse files Browse the repository at this point in the history
  • Loading branch information
dopebnan committed May 6, 2024
1 parent 76618c3 commit 3effcdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ default_settings: # Default settings
pic_cooldown: # cooldown between pic commands IN SECONDS
pic_cooldown_bool: # If it should display a cooldown message for pic commands
echo_cooldown: # cooldown between echo commands IN SECONDS
prefix: # the bot prefix you want
```
Then you just need to start the bot by running `bot/main.py` in a terminal.
Expand Down
2 changes: 1 addition & 1 deletion bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ async def on_command_error(self, ctx, error):


async def main():
async with KwanCore(command_prefix="kc!", intents=discord.Intents.all()) as bot:
async with KwanCore(command_prefix=settings["prefix"], intents=discord.Intents.all()) as bot:
await bot.start(bot.config["token"])


Expand Down

0 comments on commit 3effcdd

Please sign in to comment.