Git Product home page Git Product logo

chat-bot's Introduction

Destiny.gg Chat Bot

Runnin' it

You'll need a configuration file, there's a sample configuration under ./configuration, rename this to prod.config.json and enter in your own keys to hit the APIs. Documentation on configuration coming eventually.

You shouldn't need api keys for most commands, but you will definitely need them to run the bot against twitch.

See below for local development of the bot.

npm install
npm start

Contribution And Development

Contribution is welcome, but please get in contact with me before you start contributing to make sure we're not stepping on each others toes or you're not doing something that the bot shouldn't be doing.

In order to get up and running, the easiest way is to cd on into the /.tools directory and run

node index.js

This will open up a very basic web socket server on localhost:8420. Set your dgg config url to ws://localhost:8420 and you should connect right up.

If you open the html file within the same directory in a browser, it serves as a tiny chat page with connected to the tiny chat server that you can use to test commands.

More to come once the bot is, you know, actually live and not in a constant state of rapid development.

Command References

The below table is the standard list of non static commands.

{} = required parameter

() = optional parameter

All commands are case insentivie.

Durations are in the format of the number, followed by h,m,s or d.

10m

20h

500d

(Note on adding commands/scheduled commands for admins, when you add the commands to twitch/dgg, you need to !restart the bot in the other chat to pick these changes up. This will change with a future update.)

Command Input What it does Requires Admin Example
!restart None Restarts the dgg or Twitch.tv bot. Don't overuse the command, it resets caches. Yes !restart
!stalk {user} (postnumber) Overrustle logs posts Yes !stalk Destiny 5
!time None Current Steven Time No !time
!addcommand {command} {text} Adds a static command that can be called by anyone. Yes !addcommand !hello HEY HOWDY THERE PAL HOW YOU DOIN
!deletecommand {commandToDelete} Deletes a static command Yes !deleteCommand !hello
!listcommands None Lists all static database stored commands Yes !listcommands
!mute (duration) {user} Mutes a user Yes !mute 10m MrMouton
!unmute {user} Unmutes a user Yes !unmute MrMouton
!ban or !ipban (duration) {user} (reason) Bans a user Yes !ban 1024h JAYL For being too cute
!unban {user} Unbans a user Yes !unban JAYL
!nuke (duration) {phrase or regex} The total users nuked. Yes !nuke 30m KING MOUTON !nuke 30d /[A-Z]+\s?420/
!aegis None Removes any nukes that have been fired in the last 10 minutes and unmutes all users muted Yes !aegis
!love None Gives you love No !love Linusred
!addschcmd !asc (commandToAdd) Schedules a static command to be sent from the bot every few minutes. Yes !asc !hello
!deleteschcmd !dsc (commandToDelete) Deletes a scheduled command so its not longer sent. Yes !dsc !hello
!song None Current song being played on Last.fm No !song
!lastsong !pastsong !previoussong !earlierSong None Previous song before the current one being played on last.fm No !lastsong
!youtube !yt !lastvideo None Last video posted on Destiny's youtube channel No !yt
!addban !addmute (duration) {banned phrase} Adds a banned phrase that will auto mute/ban upon a user posting it. Yes !addban 10d HAHA GNOMED
!deleteban !delb {banned phrase} Removes a banned or muted phrase. Works for both. Yes !deleteban HAHA GNOMED
!live None Reports the last time a stream was live, or how long the stream has been going. No !live
!ud Any text Updates the !duo command with whatever text you type. Yes !ud Lilypichu AYAYA
!duo None Outputs whatever is current stored using !ud No !duo
!deaths None Outputs the current death counter No !death !died
!incdeaths None Adds 1 to the current death counter. Can only be updated once every 15 seconds to prevent 2 people updating Yes !id !ideaths !incd
!setdeaths (number to set deaths to)) Sets the death counter to the value specified Yes !setd 50 !sdeaths 100

Todo

  • Can always add more testing

chat-bot's People

Contributors

shadedred avatar dotted avatar quikstrike avatar deen17 avatar jjayl avatar

Watchers

James Cloos avatar  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.