Giter Site home page Giter Site logo

discobot's Introduction

DiscoBot

A chat bot for discord app built with discord.js.

Features:

Commands

  • avatar: See someone's avatar.
  • cat: Gets a random cat picture.
  • choose: Let DiscoBot choose for you.
  • dog: Gets a random cat picture.
  • getinfo: Gets user's saved info from the database
  • help: See what commands I can run!
  • hug: Give someone a hug ๐Ÿ˜Š
  • joined: See when someone joined the server.
  • magic8ball: See the future, have DiscoBot read your fortune.
  • penguin: Gets a random penguin picture.
  • regions: Lists all available regions for use with the !setregion command.
  • role: Set or remove a role from yourself.
  • set18: Gives you the 18+ role, allows access to #over-18 and #over-18-text.
  • setinfo: Save your gamertag/username for any gaming service to the database.
  • setregion: Set your region, get pretty color.
  • slap: Slap someone that deserves it.
  • spray: Spray someone thirsty...
  • unset18: Removes the 18+ role.
  • unsetinfo: Delete a gamertag/username, or all your saved data.
  • unsetregion: Remove your region, remain mysterious.

Events

  • memberBanned: Logs a member being banned in #user-logs.
  • memberJoined: Welcomes a user to the chat, logs them joining in #user-logs, sends them a welcome PM.
  • memberLeft: Logs a member leaving in #user-logs.
  • memberUnbanned: Logs a member being unbanned in #user-logs.
  • memberUpdated: Logs a username change in #user-logs.
  • messageDeleted: Logs a deleted message in #user-logs.
  • messageUpdated: Logs a message edit in #user-logs.

Requirements

  • node.js

Running

Run npm install to install required dependancies.

You will need to set the AUTH_TOKEN environment variable in order to run the bot locally. You can create one of these here. The application must be created as a 'Bot User'and invited to your test server following the instructions in the Discord docs.

You will also need to set the following Firebase environment variables in order to test saving to the database.

  FIREBASE_API
  FIREBASE_AUTH_DOMAIN
  FIREBASE_DATABASE_URL
  FIREBASE_STORAGE_BUCKET

These can be generated from the Firebase console.

Finally, you can set the APP_DEBUG environment variable to 'true' to ensure you get a few extra logging messages to the console.

After adding these, run npm start to run the bot.

discobot's People

Contributors

aetaric avatar brandon-a avatar chalda avatar chrislennon avatar christoabrown avatar einarin avatar otter-computer avatar shiburizu avatar thebaconspace avatar themaxkim avatar will-isles avatar

Watchers

 avatar

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.