Giter VIP home page Giter VIP logo

constantine-bot's Introduction

Constantine

Constantine is an open-source multifunctional Discord Bot written in Python.

  • Music Player (Planned)
  • ToDo List and Reminders (Planned)
  • Voting (Planned)

Usage

  • !help [command] - Everyone knows what this does.
  • !ping - Responds with "Pong!"
  • !say - Responds with user-specified text
  • !translate <detect||available> [text]- Available returns all available languages. Detect tries to detect what language a user-specified text is written in. is the language the user would like to translate into. Example command: "!translate de-en Hallo, wie geht es dir?" will return "Hello, how are you?". If no input language is specified it tries to detect the language. From my experience one word translations work best. This command uses the free Yandex Translator API
  • !news <[source (default: google-news)]|info|available> [source] - Available returns all available news sources. info [source] returns details about the specified source. !news [source] will return the top ten articles, a short description and a link on the specified news site. If no news site is specified, Google News will be used because it puts together news from different sites.

Tech

Constantine uses the following libaries and APIs:

  • pipreqs - Quickly creating requirements.txt files for specific projects.
  • Discord.py - Discord API Wrapper for Python

Installation

Part 1: Download

Clone this repository using

git clone https://github.com/frereit/constantine-bot.git
cd constantine-bot

Download required libaries:

pip install -r requirements.txt
Part 2: Creating the Bot

Create a new Discord App and create a Bot User. You can add the bot to your server by modifing this url: https://discordapp.com/oauth2/authorize?&client_id=[BOT ID] You can find your bot id in the Bot User Settings.

Open config.json and configure all properties. Get the YandexKey here and the NewsKey here. The Discord Token can be found in the settings of the bot user here.

Part 3: Starting the bot

If nothing went wrong start the bot:

python constantine.py

and after a little time you should see

Logged in as
[USERNAME]
[ID]

pop up in your console. Your bot is now online! If you encouter any erorrs feel free to open an issue!

FAQ

WIP

Contributing

Found a bug in the code? Have a great idea for a feature or just want to refactor our code? GREAT!

Feel free to fork the repository and request a pull request. If you plan on doing greater changes, please contact us BEFORE starting coding your changes, we just want to avoid any wasted time, maybe we are working on the same thing and we can cooperate or we don't approve the feature and wouldn't accept the pull request.

License

GNU General Public License v3.0

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.