Code Monkey home page Code Monkey logo

discord_bots's Introduction

Discord Voting Bot

Overview

This Discord bot allows you to create and manage polls (votes) in your Discord server. Users can vote on various options, and the bot provides the final results of the poll.

Features

  • Create a poll with a title and multiple options.
  • Users can react to the options to vote.
  • Close the poll and view the voting results.

Prerequisites

  • Python 3.6 or higher
  • discord.py library
  • A Discord bot token (see Discord Developer Portal)

Create a virtual environment (optional but recommended):

python3 -m venv venv
source venv/bin/activate  # On Windows, use `venv\Scripts\activate`

Install the required Python packages:

pip install -r requirements.txt

Create a .env file in the project directory with your Discord bot token:

DISCORD_TOKEN=your_bot_token_here

Usage

  • Start the bot by running the following command:

    python3 vote_bot.py
  • Invite the bot to your Discord server using the OAuth2 URL generated in the Discord Developer Portal.

Use the following commands to interact with the bot:

  • !start_vote Start a new poll. The bot will guide you through creating the poll's title and options.

  • !close_vote Close the current poll and display the voting results.

  • Follow the bot's prompts and react to them accordingly to create and manage polls.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Thanks to the discord.py library for making it easy to develop Discord bots in Python. Feel free to modify and expand upon this README to include any additional details or acknowledgments specific to your project.

discord_bots's People

Contributors

natanaelrusli 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.