Giter Site home page Giter Site logo

maddenbot's Introduction

Madden Bot

This bot was created to assist in Madden User Leagues.

Commands


All commands can be found in src/commands, organized into folders like /madden. In order to request a new command, open a ticket on github.

Install


  • Clone Repo
git clone https://github.com/stinkyfi/MaddenBot.git
cd MaddenBot
  • Install requirements
npm install
  • Create .env and config.json according to
.env.sample and sample.config.json
  - The previously created bot connection token
  - The GuildID aka Server ID of the server you plan to deploy bot at
  - The ClientID being your Discord ID
  - Your MongoDB connect URL
  - Dev refers to the users with rights to modify or access bot
  • Create bot invite link

  • Add the bot to your DM or Server

  • Run bot

node ./src/index.js
  • Or run bot in dev mode
nodemon

maddenbot's People

Contributors

amadeusmoon avatar stinkyfi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

maddenbot's Issues

Convert cheer hellbent command to typescript

Convert the code below into typescript, and add it to /src/commands/madden/go-hellbent.ts

require('dotenv').config();
const { EmbedBuilder } = require('discord.js');

module.exports = {
    /* @param {Client} client
     * @param {Interaction} interaction */
    callback: (client, interaction) => {
      console.log('Hellbent Waifu');

      (async () => {
      try {
          const embed = new EmbedBuilder()
          .setTitle('Skull Merchant starts a Chant')
          .setDescription('THWACK! THEM! HELLBENT!')
          .setImage('https://i.ibb.co/m6Q7bRB/Store-Skull-Merchant.png')
          .setColor(0x000e7a)
          .addFields(
            {
              name: 'Hellbent Gains:',
              value: '+10% Confidence',
            },
          );
          await interaction.reply({ embeds: [embed] });
      }
      catch (error) {
        console.log(`Error Displaying User: ${error}`);
      }
    })();
  },
  name: 'hellbent-waifu',
  description: 'Summon Hellbents Waifu, to cheer him on!',
};

Track number of championships by user

  • Add a new column that tracks the number of championships to mongodb.
  • Then create a command that will add a championship to a user.
  • Display it in the get-user command.

Add joke suspension command

Users can add suspensions for each other based on number of days.
Users can add crimes that are randomized each time the list of suspensions is listed.

Convert to TS

Convert to ts and add to branch :

  • get-suspensions.js in Commands
  • suspend-user.js in Commands
  • Supensions.js in Models

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.