Skip to content

tonycknight/nomoretrolls

Repository files navigation

nomoretrolls - A Discord bot to counter the awkward

Build & Release

Discord getting unruly? Some folks don't know how to read rooms, nor when to shut up? Tired of long fireside chats, and being ignored? Then it's time to troll the trolls!


Features

  • Ramped-up annoyance of blacklisted users

  • Ramped-up silencing of shouting users

Details on features and their configuration can be found here.


Getting started

  • You'll need to install the .Net 6 SDK to build. All project dependencies are managed by the build process.

  • You'll need access to a Mongo DB server. MongoDB Atlas will be useful for initial trials.

  • To build, run

    dotnet tool restore
    dotnet restore
    dotnet build
    
  • To run from the command line using environment variables :

    .\nomoretrolls.exe start

    See discord configuration for details on configuration.

  • To run from the command line with a configuration file:

    .\nomoretrolls.exe start -c <path to config file>

    See discord configuration for details on configuration.


Installation

A docker image is built by this repository:

docker pull ghcr.io/tonycknight/nomoretrolls:<tag>

To run, provide environment variable configuration:

docker run -it --rm -e nomoretrolls_Discord_DiscordClientId=<discord client id> 
                    -e nomoretrolls_Discord_DiscordClientToken=<discord client token> 
                    -e nomoretrolls_MongoDb_Connection=<mongo DB connection string> 
                    -e nomoretrolls_MongoDb_DatabaseName=<mongo DB name> ghcr.io/tonycknight/nomoretrolls:<tag>

Configuration

For Discord Configuration, see discord configuration.

For Bot Configuration, see bot configuration.