Skip to content

A small nodejs application to announce your echoCTF instance headshots through a discord webhook

Notifications You must be signed in to change notification settings

echoCTF/echoctf-headshot-discord-announcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

echoCTF headshot discord announcer

A small nodejs application to announce your echoCTF instance headshots through a discord webhook.

This simple nodejs script queries the database and posts updates to a discord channel webhook.

The messages arrive on discord and appear like so Discord message

The script supports bypassing the default username and avatar that the messages appear from.

Configuration

{
  "db_host": "localhost",
  "db_user": "root",
  "db_pass": "",
  "db_name": "echoCTF",
  "lastID": 0,
  "DiscordHook": "https://discord.com/api/webhooks/",
  "botName": null,
  "botAvatarUrl": null
}

The following environment variables can be used to bypass the configuration

  • CONFIG_PATH path to configuration file (default: ./config.json)
  • lastID the ID of the last headshot to announce (default: 0 means all headshots).

About

A small nodejs application to announce your echoCTF instance headshots through a discord webhook

Topics

Resources

Stars

Watchers

Forks