1.0.9 • Published 7 years ago

gameway-discord-bot v1.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Gameway Discord Bot

Discord Bot for Gameway:

  • Multiple Language Support
  • Text To Image Filter
  • Profanity Filter

Installation

$ git clone https://github.com/JustinBack/gameway-discord.git

Now run index.js to initialize everything

Methods:

$ npm start

Or

$ node index.js

Now you will see the following output:

LOG [2017-10-31 15:58:55]  Bot starting...
ERROR [2017-10-31 15:58:55]  Missing conf/TOKEN file! Created...

Head over to conf/ and open the TOKEN file, insert your bot token there.

Start the bot again

Methods:

$ npm start

Or

$ node index.js

If everything worked you will see this:

LOG [2017-10-31 15:59:24]  Bot starting...
LOG [2017-10-31 15:59:24]  Found conf/TOKEN...
LOG [2017-10-31 15:59:24]  Bot Connected | Now listening to messages

Hint: You can run the bot in the background using npm run background_start Available Scripts:

  • background_start
  • background_stop
  • background_restart

Configuration

You can configure the bot with files available in the conf/ folder.

bot.json

bot.json is the main bot configuration

KeyTypeDescriptionDefault Value
bot_statusStringGame of the BotNone
command_prefixStringCommand Prefix of the Bot!gway
bot_languageStringDebug and Bot Languageen_US
url_regex_1StringURL Filter Regex(https?:\\/\\/(.+?\.)?discord\.gg(\\/[A-Za-z0-9\-\._~:\\/\?#\\@!$&'\(\)\\+,;\=])?)
url_regex_1_2StringURL Filter Regex(https?:\\/\\/(.+?\.)?disc0rd\.gg(\\/[A-Za-z0-9\-\._~:\\/\?#\\@!$&'\(\)\\+,;\=])?)
url_regex_2StringURL Filter Regex(https?:\\/\\/(.+?\.)?discordapp\.com(\\/invite\\/[A-Za-z0-9\-\._~:\\/\?#\\@!$&'\(\)\\+,;\=])?)
url_regex_2_1StringURL Filter Regex(https?:\\/\\/(.+?\.)?disc0rdapp\.com(\\/invite\\/[A-Za-z0-9\-\._~:\\/\?#\\@!$&'\(\)\\+,;\=])?)
url_regex_2_2StringURL Filter Regex(https?:\\/\\/(.+?\.)?disc0rdapp\.c0m(\\/invite\\/[A-Za-z0-9\-\._~:\\/\?#\\@!$&'\(\)\\+,;\=])?)
url_regex_2_3StringURL Filter Regex(https?:\\/\\/(.+?\.)?discordapp\.c0m(\\/invite\\/[A-Za-z0-9\-\._~:\\/\?#\\@!$&'\(\)\\+,;\=])?)
url_regex_3StringURL Filter Regexdiscord.gg
url_regex_4StringURL Filter Regexdiscordapp.com/invite
debug_show_messagesBooleanShow if you have received a message in the consolefalse
allowed_extensionsArrayAllowed Extensions for the PTT"jpg", "jpeg", "png" GIFs are not possible to transcribe!
authorized_usersArrayAllowed Users for special commands"253160415947653120"
application_database_nameStringName for the Database where applications are being insertedapplications
application_database_prefixStringPrefix for the Database where applications are being insertedgw_

server.json

server.json contains some ID's of the Gameway Server such as Role ID's or the Server ID itself

KeyTypeDescriptionDefault Value
gameway_server_idStringGameway Discord Server ID306442255009447944
gameway_stranger_role_idStringNew User Role ID350544575410077696
gameway_introduction_channel_idStringChannel where Join message is being sent306442255009447944
gameway_applications_channel_idStringChannel where Applications are being sent375350842842284042

Translate

Translating the Bot is very easy! Head to lang/ copy the contents of the en_US.json file, create a new file your_language.json, paste it and translate! Make sure to reflect your changes in the conf/bot.json.

License

MIT License

Copyright (c) 2017 Justin Back

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago