Skip to content

westooooo/ttt_discord_bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTT Discord Bot Icon

Dead players can't speak!

... and that's basically what this bot does.

price gmod-addon discord-bot i-like-badges license

This is a powerful discord bot that mutes dead players in TTT (Garry's Mod - Trouble in Terrorist Town)

Getting Started

If you need a step-by-step tutorial, follow my guide at steam

Prerequisites

  • You have to have allready installed a Garry's Mod Server with the TTT Gamemode
  • You must have Nodejs installed

Installation

  1. Clone this repository (to e.g. your home folder) and install the requirements

    cd ~
    git clone https://github.com/marceltransier/ttt_discord_bot.git
    cd ttt_discord_bot
    npm install --prefix ./discord_bot/
  2. Rename the config.json.example in config.json

  3. Create Discord Bot, invite him to your server and paste the token in the config

    • if you don't know how to, follow this guide

    • insert the bot token at discord -> token in the config.json

    • grant the bot the permissions to mute members

  4. Insert the Guild (Server) id and the channel id in the config

    • if you don't know how to get these id's, follow this guide

    • insert the guild id at discord -> guild and the cannel id of the voice channel in wich the bot should mute dead players at discord -> channel in the config.json

  5. Add the addon to the garrysmod server

    • Move the gmod_addon folder to garrysmod/addons and name it suitable e.g. ttt_discord_bot

    • Or add the workshop object to the servers collection

Usage

  • Start the bot by runing the node command with the ttt_discord_bot/discord_bot/ directory
  • Connect your Steam Account with the bot by typing !discord YourDiscordTag in the ingame chat. E.g !discord marcel.js#4402. If you're lazy and there is nobody else with your discord discriminator (#4402) in the ttt channel, it's enough if you use this. E.g. !discord 4402
  • If you're in the configured voice channel, the game state is in progress, you're connected with discord and you die in TTT, the bot will mute you!

Credits

  • I used discord.js in this project. Thanks for the easy opportunity writing a discord bot in javascript!
  • Thanks for the great Garry's Mod gamemode Trouble in Terrorist Town I made this bot for.

Contributing

  1. Fork it (https://github.com/marceltransier/ttt_discord_bot/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Dead players can't talk! - A Discord-Bot that mutes dead TTT players

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 64.7%
  • JavaScript 35.3%