A basic discord bot using python.
Lastest update (v0.4.1): June 27th, 2019
WARNING: This project is no longer maintained
Here is a quick guide to help you setup DevBot.
- discord.py (tested with v1.2.3)
- emoji (tested with v0.5.2)
-
Install python
-
Install dependencies:
pip install discord.py pip install emoji
- Clone repository:
git clone https://github.com/Alexinfos/devBot.git
-
Go to the Discord Developer Portal and create a new app.
-
Select the "Bot" option on the left menu.
-
Click "Add Bot" and validate.
-
Under "Token", click "Copy".
-
Open the "main.py" file with your prefered code editor/IDE and edit line 138
client.run("BOT-TOKEN")
where "BOT-TOKEN" is your freshly-generated Discord Bot Token. -
Create a debug channel on your discord test server, where the bot will print debug messages.
-
Enable "Developer Mode" in your Discord Client (Settings > Appearance > Advanced > Developer Mode), right-click on your newly-created debug channel to open the context menu and click "Copy ID".
-
Go back to the "main.py" file and edit line 16
test_channel = 0000
where "0000" is replaced with the channel id you just copied. -
Go back to the Discord Developer Portal and click the "OAuth2" option on the left menu, then under "SCOPES" check the "bot" option.
-
You can then choose which permissions you want to give to your bot under "BOT PERMISSIONS" (I recommend you at least check all "TEXT PERMISSIONS").
-
Copy the generated link and open it in your browser. Select a server that the bot should join and run the main.py file with python !
Copyright (C) Alexis Brandner 2018/2019
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.