pineapple
A modular, extendible, discord bot framework based on discord.py.
Check out our Trello page for our progress and plans: https://trello.com/b/tj0OqFwR/pineapple-feature-timeline
Installation
This guide will be for installing the bot on Ubuntu.
Creating a bot account
- Go to the discord developers page
- Click New Application
- Give your bot a name and an icon, then press Create Application
- On the next page, click Create a Bot User
- Next to Token, click Click to reveal to see your token
- Enter your token inside the configuration file for the bot.
running the bot
- Clone the repo locally using
git clone https://github.com/peter765/pineapple.git
. - Edit the config.ini.default with the necessary information.
- Rename config.ini.default to config.ini.
- Update pip with
python3.5 -m pip install --upgrade pip
for Ubuntu 14.04 orpython3 -m pip install --upgrade pip
for 16.04 and later. - Use
pip install -r requirements.txt
to install dependencies. - Install py-trello using
pip install -r py-trello
. - Run the bot using
python3.5 bot.py
for Ubuntu 14.04 orpython3 bot.py
for 16.04 and later.
Adding the bot to your server
- Make sure you have Manage Server permissions.
- go to the discord developers page and click on your application. At the top, you will find the bot account's Client ID.
- Replace "CLIENT_ID" in the following link the Client ID from your application page, and then open that URL in a browser. https://discordapp.com/oauth2/authorize?&client_id=CLIENT_ID&scope=bot&permissions=0
- Select your server and add the bot to that server
Common issues
###ImportError: cannot import name 'quote_plus'
This error happens when you install trello instead of py-trello. You can use
pip install py-trello
to fix this this issue.