Giter Club home page Giter Club logo

discord-bot's Introduction

Discord-Bot

Hi, this is a template Discord bot using Python.

To use this bot, you have to go to the Discord Developer Portal, create a new Bot, and get the Token code.

Then, go to env.py in the config file, change YOUR_TOKEN to your Bot's token. After that step, you can run main.py and enjoy!

Beside, to use weather commands, you should have your own API key. In this code, i use API key from OpenWeather, create your account and get API key. Then replace it in weather.py.

You can change command prefix to whatever you want!

BOT_AUTHORIZE_TOKEN="YOUR_TOKEN"
BOT_COMMAND_PREFIX="!"

You can add it to your community server or your own server to use it.

Functions of the bot

My bot has some functions to support users in the server.

I'm updating my code every month, so maybe you'll see some new functions ๐Ÿค”

To show all commands, !help will help you to do that.

Note

This function helps users to take notes, view notes, set reminders, and delete notes.

  • takenote: Take a note and assign it to a category. There are 4 categories: Red (highest priority level, needs to be done or executed immediately), Yellow (high priority level, important), Blue (medium priority level), and Green (low priority level).
  • viewnotes: View all notes, and you can mark them as completed.
  • deletenote: Delete a specific note from the note queue.
  • settime: Set a reminder for a specific note.
  • deleteallnotes: Delete all user's notes.
  • Updating...

Weather

This function shows user informations about weather.

  • weather: use this command for short weather's information in that day.
  • temp: Get the weather forecast for the next week for a specific city.
  • compare: Compare the temperature forecast for the next week between two cities.

Formula 1

This function helps users search for information about any category in Formula 1. (Forza Ferrari)

  • racewinner: Get the winner of the latest race.
  • calendar: Get the full calendar of the next race.
  • standings: Get the current driver standings.
  • constructor: Get the current constructor standings.
  • search: Get information about a driver in a specific season.

discord-bot's People

Contributors

khanhtran0111 avatar

Watchers

 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.