Skip to content

A Discord bot which pings users in a channel whenever a new CTF challenge is up.

Notifications You must be signed in to change notification settings

gasharova/MLH-CTF-Discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLH-CTF-Discord-bot

A Discord bot which pings users in a channel whenever a new CTF challenge is up.

bot

How to use

The bot is located in bot.py.

1. Install the dependencies:

Dependencies

  • discord
  • discord.ext
  • bs4
  • requests
  • dotenv
  • selenium
  • webdriver_manager
  • chromedriver_py
  • threading

You'll need to have Chrome installed since its the browser used in this bot.
You can change this yourself, just find the definition of the driver and change it to whatever selenium driver suits your needs.

2. Edit the script with your tokens

You'll need:

  • A discord app with a discord bot in it, and the token of that specific bot. To obtain it, go to Discord.
  • The MLH platform's session cookie value as a token. You can find it in your cookies when you go to the platform.
  • The discord channel ID where messages will get sent. With developer mode enabled, rightclick on the channel > Copy ID.

3. Simply run the script without any arguments:

python bot.py

About

A Discord bot which pings users in a channel whenever a new CTF challenge is up.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages