Skip to content

dot-ASH/fantasy-discord-bot

Repository files navigation

A discord bot built with Discord.js for UEFA CHAMPIONS LEAGUE FANTASY

Features


  • Responds to discord slash command.
  • Reminders before every match-day and matches.
  • Reminders for sub/transfer player.
  • and more..

Development


  • Clone the repo.
git clone https://github.com/dot-ASH/fantasy-discord-bot.git && cd fantasy-discord-bot
  • Install npm packages
npm install 
  • Create and configure the environment
touch .env
  • Edit the .env file with these attributes:-
ADMIN= server-username
PASS= server-password
LEAGUE_URL= your-league-url
TOKEN= your-discord-bot-token
CLIENT_ID= your-discord-bot-id
GUILD_ID= your-server-id
CHANNEL_ID= your-channel-id
NODE_VERSION= 18.14.0
ROLE= id-of-role-to-mention
TIME_ZONE= your-timezone e.g. Asia/Dhaka
WINNER_NAME= "previous winner name" or ""
WINNER_TEAM_NAME= "previous winner name" or ""
WINNER_IMAGE_URL= image-url-of-the-winner
  • Run the bot
npm run div
  • Fetch the date
    • Open browser @http://localhost:3000/ and login with the username, password you set inside the .env file (default: admin, 12345).
    • Click on fetch Fixture then simplify Fixture to get the latest fixture.
    • Provide your leagues API JOSN file link and press fetch leaderboard and then simplify leaderboard to get the latest leaderboard
    • Other send options are self-explanatory.
  • Have Fun.

Usage


/fantasy to see the main menu.
/about to learn more.

Releases

No releases published

Packages

No packages published