Skip to content

JustLike420/discord_competition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord TOURNAMENT

Python script which find winners by reactions on message in discord

About

Python script to choose a certain number of winners by reactions on discord message

Configuring

Rename .env.dev to .env

Open .env configuration file with text editor and set the following variables:

DISCORD_TOKEN=Mj3COTc3swA5MzA0MDA2NjU3.G3gnQv
CHANNEL_ID=780950361702924308
MESSAGE_ID=1044038040605179905
REACTION_ID=55242:1044037047771475998

How to get DISCORD_TOKEN

Press F12 or Ctrl+Shift+I in your browser. Open Console

paste this into the Console (while being logged in) and before the loading animation has finished, paste it again.

window.location.reload();
copy(document.body.appendChild(document.createElement `iframe`).contentWindow.window.localStorage.token);

The token should be in your Clipboard. If it's just "null" or "undefined" do the same thing again. Don't wait too long inbetween the two times

How to get CHANNEL_ID and MESSAGE_ID

Copy message link

https://discord.com/channels/721887895157211181/780950361702924308/1044038040605179905

CHANNEL_ID=780950361702924308 (second number)
MESSAGE_ID=1044038040605179905 (third number)

How to get REACTION_ID

Press F12 or Ctrl+Shift+I in your browser.

Press Ctrl+Shift+C, point to reaction and click on it

get values in alt and data-id and join with ':'

REACTION_ID=1259tickgreen:840273469731766313

Running

Using Python

# install requirements
$ python3 -m pip install -r requirements.txt
# run script
$ python3 main.py

About

Find winner in discord contest by reactions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages