Git Product home page Git Product logo

pineapple's Introduction

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

  1. Go to the discord developers page
  2. Click New Application
  3. Give your bot a name and an icon, then press Create Application
  4. On the next page, click Create a Bot User
  5. Next to Token, click Click to reveal to see your token
  6. Enter your token inside the configuration file for the bot.

running the bot

  1. Clone the repo locally using git clone https://github.com/peter765/pineapple.git.
  2. Edit the config.ini.default with the necessary information.
  3. Rename config.ini.default to config.ini.
  4. Update pip with python3.5 -m pip install --upgrade pip for Ubuntu 14.04 or python3 -m pip install --upgrade pip for 16.04 and later.
  5. Use pip install -r requirements.txt to install dependencies.
  6. Install py-trello using pip install -r py-trello.
  7. Run the bot using python3.5 bot.py for Ubuntu 14.04 or python3 bot.py for 16.04 and later.

Adding the bot to your server

  1. Make sure you have Manage Server permissions.
  2. go to the discord developers page and click on your application. At the top, you will find the bot account's Client ID.
  3. 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
  4. 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.

pineapple's People

Contributors

theraga avatar pjohn7 avatar velocityfever avatar peter765 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.