This Discord bot is built using Python and the Disnake library. It includes several features, including giveaways, polls, and integration with a Google Sheet for data storage.
The bot can host giveaways in a specified channel. Users can enter the giveaway by reacting to a specific message with a specified emoji. The bot will then randomly select a winner from the list of entrants and announce them in the same channel.
The bot can also create polls in a specified channel. Users can vote on the poll by reacting with a specified emoji. The bot will then tally the votes and display the results in the same channel.
The bot can write data to a specified Google Sheet. This feature can be used to store information related to giveaways or polls, or any other data that needs to be persisted across sessions.
- Clone this repository to your local machine.
- Create a virtual environment and activate it.
- Install the required dependencies using
pip install -r requirements.txt. - Create a Discord bot application and obtain its token.
- Create a Google API project and obtain its credentials. Replace
credentials replace.jsonwith yourcredentials.json - Create a Google Sheet and share it with the service account associated with your Google API project.
- Rename
.env.exampleto.envand fill in the required values. - Change config settings according to your preference in
settings/config.py - Run the bot using
python main.py.





