Skip to content

A bot to manage roles and such on Discord

License

Notifications You must be signed in to change notification settings

olliy1or/ctf-discord-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTF Discord Bot

Requires Node v14.

License: MIT

Features

  • Show rank stats embed for a player.
    • !rank - Stats for player with the Discord user's username or nickname.
    • !rank username - Stats for player username.
    • !oldrank - Old stats for player with the Discord user's username or nickname.
    • !oldrank username - Old stats for player username.
  • Posts leaderboard to a channel, editing existing messages.

Usage

  • Create Discord bot and application using the Discord Developer Portal, as shown in this guide.
  • Invite the Discord bot to the desired server, as shown in this guide.
  • Install dependencies: npm install.
  • Run with environment variables: RANKINGS_CHANNEL=id STATS=path/to/ctf_stats OLD_STATS=path/to/ctf_stats.old TOKEN=discord_token npm start
    • RANKINGS_CHANNEL - Channel ID for the leaderboard.
    • STATS - Path to stats file, found in world/ctf/mod_storage/ctf_stats.
    • OLD_STATS - Path to old stats file (!oldrank)
    • TOKEN - Discord bot token, get from bot page in Discord Developer Portal.

Other

You can grab messages sent with !st via Minetest. See https://github.com/MT-CTF/servermods/blob/master/server_chat/init.lua#L77 for an example

About

A bot to manage roles and such on Discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%