commit 8f03aae75ef400156e3f8e5f46e337973050d912
parent ab5831df9a6663845f8c6392f87b0994b3e78228
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date: Fri, 12 Feb 2021 12:12:09 -0800
Change command prefix to "c."
Diffstat:
| M | README.md | | | 63 | ++++++++------------------------------------------------------- |
| M | bot.py | | | 4 | ++-- |
2 files changed, 10 insertions(+), 57 deletions(-)
diff --git a/README.md b/README.md
@@ -16,67 +16,20 @@ A Discord bot to facilitate countdowns.
DISCORD_TOKEN="YOUR_DISCORD_TOKEN_HERE"
```
-4. Add your bot to the countdown channel and copy the ID of the channel into a `channels.txt` file in the root directory. ex:
+4. Add the bot to your server.
+ ```
+ https://discordapp.com/oauth2/authorize?client_id=BOT_ID_HERE&scope=bot&permissions=232512
+ ```
+
+5. Copy the ID of each countdown channel into a `channels.txt` file in the root directory. ex:
```
<ID OF CHANNEL #1>
<ID OF CHANNEL #2>
```
-5. Run the bot
+6. Run the bot
```
python bot.py
```
-
-
-## Behavior
-- When a user posts out of turn the bot reacts to the message with ⛔.
-- When a user posts an incorrect number the bot reacts to the message with ❌.
-- When a user posts a number divisible by 200 the bot pins it.
-- When a user posts 0 the bot reacts with 🥳.
-
-
-
-## Commands
-If a command is not run in a countdown channel, the bot will run it for the 1st countdown channel.
-
-### contributors
-**Description:** Shows information about countdown contributors
-
-**Usage:** `!countdown contributors|c`
-
-
-### help
-**Description:** Shows help information
-
-**Usage:** `!countdown help [command]`
-
-
-### leaderboard
-**Description:** Shows the countdown leaderboard
-
-**Usage:** `!countdown leaderboard|l [user]`
-
-
-### ping
-**Description:** Pings the countdown bot
-
-**Usage:** `!c-dev ping`
-
-
-### progress
-**Description:** Shows information about countdown progress
-
-**Usage:** `!countdown progress|p`
-
-
-### speed
-**Description:** Shows countdown speed statistics
-
-**Usage:** `!countdown speed|s [hours=24.0]`
-
-
-### reload
-**Description:** Reloads the countdown cache
-
-**Usage:** `!countdown reload`
+7. Run `c.help` to get a list of commands and a description of the bot's behavior.
diff --git a/bot.py b/bot.py
@@ -359,7 +359,7 @@ with open(os.path.join(os.path.dirname(__file__), "channels.txt"), "a+") as f:
# Create Discord bot
-bot = commands.Bot(command_prefix = ["!countdown ", "!count ", "!c "])
+bot = commands.Bot(command_prefix = ["c."])
bot.remove_command("help")
@@ -466,7 +466,7 @@ async def contributors(ctx):
-@bot.command(aliases=["h"])
+@bot.command(aliases=["h", ""])
async def help(ctx, command=None):
"""
Shows help information