GithubHelp home page GithubHelp logo

dot-ash / fantasy-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.62 MB

Discord bot based on UEFA CL fantasy league

JavaScript 81.45% CSS 1.78% EJS 16.78%
discord-bot discord-js fantasy-league uefa-champions-league

fantasy-discord-bot's Introduction

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.

fantasy-discord-bot's People

Contributors

dot-ash avatar

Watchers

 avatar  avatar

fantasy-discord-bot's Issues

New season

Hey,
Thanks for the bot.
Would you consider making this bot somehow connected to the UEFA CL api so it can work from season to season?

Thanks :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.