GithubHelp home page GithubHelp logo

00-00-00-11 / discord-hackweek-2019 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hassiexx/discord-hackweek-2019

0.0 1.0 0.0 380 KB

A moderation bot in Go for Discord Hack Week 2019 using command menu systems for improved usability and interaction

License: Apache License 2.0

Go 99.12% Dockerfile 0.88%

discord-hackweek-2019's Introduction

Discord Hack Week 2019

About

The purpose of this bot was to try a different way of executing kicks and bans rather than trying to make as many commands as possible for this event, so don't expect too many commands :D

Instead of chaining everything in a single command with an argument spliterator such as ';' which most bots do, which gets messy, this bot uses multi stage commands also known as "command menus".

Commands

  • Prefix: m.
  • ban @user - Activates the ban menu to ban the mentioned users.
  • kick @user - Activates the kick menu to kick the mentioned users.
  • logchannel #channel - Sets the log channel to send moderation logs to, this must be set.
  • ping - Pong! with the latency (round trip of message send and receive) time.
  • warn @user - Activates the warn menu to warn the mentioned users.

Host

The bot is hosted by myself until the event officially ends on Tuesday. The bot can be added using this link: https://discordapp.com/api/oauth2/authorize?client_id=593898637222739987&permissions=76934&scope=bot

Self Setup

Requirements

  • Golang 1.12
  • MongoDB

Environment variables

  • DISCORD_HACK_WEEK_2019_TOKEN - This is your bot token
  • DISCORD_HACK_WEEK_2019_MONGODB - This is your MongoDB URI in the form mongodb://[username:password@]host1[:port1][,...hostN[:portN]]][/[database][?options]], see https://docs.mongodb.com/manual/reference/connection-string/. If you are Discord staff testing the bot, feel free to DM me to get the URI to my MongoDB cloud instance.

Install Go

  • Ensure you have Go 1.12 installed.

Run the bot

  • Clone the repo; as this uses Go modules, it does not need to be placed in the Go path.
  • Open your command shell and navigate to the repo folder.
  • Fetch all required dependencies for the bot: go get ./...
  • Run the bot: go run main/main.go

discord-hackweek-2019's People

Contributors

hassiexx avatar

Watchers

 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.