Skip to content

It's a Discord bot made for interacting with the Arena's API

Notifications You must be signed in to change notification settings

siesgstarena/Arena-bot

Repository files navigation

Dicord-bot

prerequisite:

  1. Make sure to create the bot on the discord developer portal https://discord.com/developers/docs/intro

  2. CodeChef

  • To Get The Api of CodeChef You Need To Mail Them At [email protected] and Convey for what purpose you need there api
  • Then They Will Send One Form You Need To Fill That Form And Wait. Then You Will Get Mail From There Side And Now You Will Be Able To Get The API Token
  • Documentation https://developers.codechef.com/#grant-types

Get Started

    npm install --global yarn
    yarn install 

Getting the configuration ready

Copy the .env.example file at the same location and save as .env

cp .env.example .env

How To Run

    yarn run dev

Starting the application

  docker compose -f .\docker-compose-dev.yml up

Remove cache and build

  docker compose -f .\docker-compose-dev.yml up --build --remove-orphans --force-recreate

Discord.js Docs : https://discord.js.org/#/docs/discord.js/main/general/welcome
Dicord Embed : https://discordjs.guide/popular-topics/embeds.html#using-the-embed-constructor
Arena Api Docs : http://arena.siesgst.ac.in/api/docs
YouTube Playlist : https://www.youtube.com/playlist?list=PLaxxQQak6D_f4Z5DtQo0b1McgjLVHmE8Q

Commands

Primary

  • Basic User Info
  • Get Event info about official codechef (Upcoming Contest)
  • Help Command
  • Create A Poll
  • Upcoming Contest
  • Assigning a role (make sure that the one who running the command have privilege to give the particular role)
  • Top 5 Coders For a given contest

Secondary

  • After each contest show user ratings if upgrade show in green if degrade show in red
  • All Time Top 5 Coders