Skip to content

Commit b92948f

Browse files
committed
discord_bot: basic bot skeleton running
1 parent 76db03a commit b92948f

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

DiscordBot/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# How To Run
2+
follow this guide to get a token and setup a bot account: <https://www.writebots.com/discord-bot-token/>
3+
4+
Then insert your token at the top of the file.
5+
6+
Make sure you have discord.py installed:
7+
```bash
8+
pip install discord
9+
```
10+
11+
Then just run the bot using python:
12+
```bash
13+
python bot.py
14+
```

DiscordBot/main.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import discord
2+
from discord.ext import commands
3+
4+
5+
# your token here, inside the ""
6+
TOKEN = ""
7+
8+
9+
# you can change the prefix here
10+
bot = commands.Bot(command_prefix="!")
11+
12+
13+
if __name__ == "__main__":
14+
bot.run(TOKEN)

0 commit comments

Comments
 (0)