Code Monkey home page Code Monkey logo

banlogger's Introduction

BanLogger

BanLogger is a Discord bot which allows game server administrators to easily log and form a record of the offenses of users in Steam games.

Setup

  1. Install Go 1.14 or newer
  2. Clone this repository
  3. Build the project using go build cmd/banlogger/main.go. This will output a binary called main. You should rename this to BanLogger or something else which makes sense to you.
  4. Create a .env file alongside the executable and define the following environment variables: DISCORD_BOT_TOKEN STEAM_API_KEY CHANNEL_ID

DISCORD_BOT_TOKEN is where you put your Discord bot's token. You can create an application and then a bot at https://discord.com/developers/applications. For more information, give this page a read: https://www.writebots.com/discord-bot-token/

STEAM_API_KEY is where you put your Steam API Key. You can get your API key at https://steamcommunity.com/dev/apikey.

CHANNEL_ID where you put the ID of the channel you wish the bot to run in. For more info on how to get a Discord channel's ID, check out this guide: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-

Once all this is done, you should be able to run the bot. Run it like you would any other executable and invite the bot to your server!

banlogger's People

Contributors

dsnidr avatar

Watchers

 avatar  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.