Skip to content
 
 

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Contest Bot

image

This bot:

1- Announces the beginning of art contest submission.

2- Captures all art sent to the submission channel, resizing them and converting them to WEBP.

3- Sends all submitted art to the art contest voting gallery type channel.

4- Closes submission channel and announces the beginning of voting.

5- Members will vote for their favorite artwork in the voting gallery by upvoting.

6- Bot counts the upvotes by the end of voting period.

7- Bot announces winner.


Since this bot was developed with a monthly art contest in mind, the default timing of the bot (adjustible in jobs.py) is as follows:

2 ~ 14 of the month = submission period

17 ~ 23 of the month = voting period

Winner is decided on the the 24th.


This bot needs permission integer of 532911877200

So edit your bot link's integer accordingly:

discord.com/oauth2/authorize?client_id= &permissions=532911877200&integration_type=0&scope=bot+applications.commands


1- To set up this bot, first, get a Mongo Database.

You can get a completely free Mongo Database from their official website here:

https://www.mongodb.com/resources/basics/databases/cloud-databases/free-cloud-database

2- After you've made your database, find its connection string / link. You can use this guide:

https://www.mongodb.com/resources/products/fundamentals/mongodb-connection-string

3- Now, SSH to your VPS.

4- To install, run:

bash <(curl -s https://raw.githubusercontent.com/MorrowShore/ContestBot/main/install.sh)

5- It'll ask for your bot token and the MongoDB connection string. Just paste em and you're done.


To uninstall, run:

sudo systemctl stop contestbot 2>/dev/null && sudo systemctl disable contestbot 2>/dev/null && sudo rm -f /etc/systemd/system/contestbot.service && sudo systemctl daemon-reload && sudo rm -rf /home/contestbot && pkill -f "python3 main.py" 2>/dev/null; echo "Contest bot uninstalled successfully!"

Commands:

image

About

Discord bot to automate art contests.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages