Permalink
Browse files

Initial commit of the new code base. Untested, probably has lots of b…

…ugs.
  • Loading branch information...
roncli committed Nov 27, 2017
1 parent fa8b18a commit e114ef8331e93a908f04e7d429b7d3ef8914b0a4
Showing with 2,816 additions and 1,362 deletions.
  1. +95 −0 .eslintrc.json
  2. +21 −2 README.md
  3. +1,262 −0 commands.js
  4. +75 −50 database.js
  5. +859 −0 discord.js
  6. +32 −0 exception.js
  7. +38 −10 index.js
  8. +12 −0 log.js
  9. +5 −5 package.json
  10. +70 −0 randomonium.js
  11. +0 −1,295 sixgaming.js
  12. +249 −0 tmi.js
  13. +98 −0 twitch.js
View
@@ -0,0 +1,95 @@
{
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true
},
"sourceType": "module",
"ecmaVersion": 6
},
"extends": "eslint:all",
"rules": {
"array-element-newline": "off",
"capitalized-comments": "off",
"class-methods-use-this": "off",
"complexity": "off",
"consistent-this": "off",
"default-case": "off",
"dot-location": "off",
"func-names": "off",
"global-require": "off",
"id-length": "off",
"indent": [
"error", 4, {
"SwitchCase": 1
}
],
"init-declarations": "off",
"line-comment-position": "off",
"linebreak-style": "off",
"max-depth": "off",
"max-len": "off",
"max-lines": "off",
"max-params": "off",
"max-statements": "off",
"multiline-ternary": "off",
"new-cap": [
"error",
{"properties": false}
],
"newline-per-chained-call": "off",
"no-confusing-arrow": "off",
"no-console": "off",
"no-continue": "off",
"no-empty-function": "off",
"no-implicit-coercion": "off",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-mixed-requires": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-return-assign": "off",
"no-ternary": "off",
"no-trailing-spaces": [
"error",
{"ignoreComments": false}
],
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"no-void": "off",
"object-property-newline": "off",
"one-var": [
"off", {
"const": "always"
}
],
"padded-blocks": "off",
"prefer-destructuring": [
"error", {
"array": false
}, {
"enforceForRenamedProperties": true
}
],
"prefer-promise-reject-errors": [
"error", {"allowEmptyReject": true}
],
"sort-keys": "off",
"sort-vars": "off",
"space-before-function-paren": "off",
"quote-props": "off",
"valid-jsdoc": [
"error", {
"prefer": {
"return": "return"
}
}
]
}
}
View
@@ -1,7 +1,7 @@
SixBotGG
========
This is the source repository for the [Six Gaming Twitch Channel](http://twitch.tv/sixgaminggg) chat bot known as [SixBotGG](http://twitch.tv/sixbotgg). This bot is written in [node.js](http://nodejs.org).
This is the source repository for the [Six Gaming Twitch Channel](http://twitch.tv/sixgaminggg) and [Six Gaming Discord Server](http://ronc.li/six-discord) chat bot known as [SixBotGG](http://twitch.tv/sixbotgg). This bot is written in [node.js](http://nodejs.org).
Installation
============
@@ -86,14 +86,33 @@ The following should be the contents of settings.js:
}
};
Coming Soon
===========
1.3.1
-----
* Code refactored for readability.
* * Main module now only handles initial connect and startup calls.
* * Separate modules for database, Discord API, Twitch API, and Tmi connectivity.
* * Preparing for advanced logging by breaking out logging into its own module and adding an exception module to throw errors along with where they occurred.
* * Randomonium is now in its own module.
* * * Added Doomfist and Moira to randomonium.
* * Commands are now in their own module, and are used by instanciating the Commands class with whether the commands will be coming from Discord or Tmi. Security on these commands are now done per command, which allows for commands to be shared between different services.
* Big update. Zero new features. 💯
1.4
---
* Implement advanced logging which outputs bot activity to #bot-activity, and error activity to #bot-errors.
* Implement channel categories, with one each for bot channels, general channels, streamer channels, and voice channels.
* Enhance bot output using Discord Rich Embeds, with text-only fallbacks.
Version History
===============
1.3 - 5/22/2017
---------------
* Bot no longer pings @everyone when a streamer goes live. Instead, you must `!streamnotify` to be alerted to when a streamer goes live, and `!streamunnotify` to turn it off.
* Bot no longer creates #game-* channels for every game that is created.
* Bot no longer creates #twitch-* text channels for every Twitch streamer who registers. Instead, you must `!createchannel` to create your text channel, and `!removechannel` to remove it.
* Bot no longer creates #twitch-* text channels for every Twitch streamer who registers. Instead, you must `!addmychannel` to create your text channel, and `!removemychannel` to remove it.
* It sucks less. 👌
1.2.1 - 3/25/2017
Oops, something went wrong.

0 comments on commit e114ef8

Please sign in to comment.