Skip to content

ctang18/DiscordBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiscordBot

A chat bot for discord app based off discord.js forked from chalda's bot with more personal features

Features:

  • !nostalgia - Returns a random link from nostalgia.json (generated from a year old skype group chat)
  • !choose - Have the bot make a decision given a list of options
  • !roll - Return a random number
  • !challenge - Issue a challenge to someone in a random game
  • !punishment - Issues a punishment
  • !alias - Create shorthand alias for a link
  • !nospam - Sets a channel to nospam preventing spammy commands from being used

Use !help to get more detailed usage information

Installation

This bot is written to run on top of node.js. Please see https://nodejs.org/en/download/

Once you have node installed running npm install from the bot directory should install all the needed packages. If this command prints errors the bot won't work!

Windows Users

Please note that you must have a working C compiler and Python in your path for npm install to work. The bot has been tested to work on Windows using Visual Studio 2015 Community and Python 2.7, except for !pullanddeploy.

Running

Before first run you will need to create an auth.json file. The email and password for a discord account are required. The other credentials are not required for the bot to run, but highly recommended as commands that depend on them will malfunction. See auth.json.example.

To start the bot just run node discord_bot.js.

Updates

If you update the bot, please run npm update before starting it again. If you have issues with this, you can try deleting your node_modules folder and then running npm install again. Please see Installation.

Todo:

  • Create a script for setting up data and auth files
  • Commands for editing data files (challenges, punishments, permissions)
  • Establish data editing permissions
  • Channel Management
  • Remove a channel's nospam flag

About

A chat bot for discord app based off discord.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%