Code Monkey home page Code Monkey logo

ttt_discord_bot's Introduction

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

ttt_discord_bot's People

Contributors

marceltransier avatar singofwalls avatar lunastrawberri avatar timschumi 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.