https://github.com/im-beast/gophelper
Simple discord bot written in Golang using DiscordGo
https://github.com/im-beast/gophelper
bot discord discord-bot discordgo go golang
Last synced: about 2 months ago
JSON representation
Simple discord bot written in Golang using DiscordGo
- Host: GitHub
- URL: https://github.com/im-beast/gophelper
- Owner: Im-Beast
- License: gpl-3.0
- Created: 2021-02-10T19:53:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-13T22:08:58.000Z (over 4 years ago)
- Last Synced: 2025-10-25T07:28:30.903Z (8 months ago)
- Topics: bot, discord, discord-bot, discordgo, go, golang
- Language: Go
- Homepage:
- Size: 2.83 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gophelper
[](https://goreportcard.com/report/github.com/Im-Beast/Gophelper)
Simple bot written in Golang using [DiscordGo](https://github.com/bwmarrin/discordgo).
## Introduction
This is my first project using Golang, originally written just for fun in midnight, rewritten to be flexible and easily scalable next 2 days
## Features
* Gophelper has simple rate limiter that can has different config per command
* Gophelper provides easy way to add commands with ability to use arguments
* Commands can contain spaces e.g. `play pingpong` may be just one command
* Nothing stops you also from creating multiple routers which may be used for a different purpose e.g. providing different language based on router's prefix
* Routers support middleware to control what passes through
## How do I install this
1. Clone repo
2. Edit config files to your preferences and add `BOT_TOKEN` env variable which will store your bot token
3. `cd` to cloned repo to directory `src/Main`
4. Run `go build .` command
5. Launch built executable
## Config files
Gophelper provides easy to edit JSON config files.
It also provides way to translate bot into multiple languages without much effort, in this repo you can see two languages: polish and english, nothing stops you by expanding it by more languages
## Pulls, forks and issues
Be free to fork this repo, if you have any comment regarding to quality of my Golang code - go ahead and open issue/add pull request. My first meet with go was 3 days ago, so I know many things can be done better.
## Commands
Gopher comes with some commands out of a box, all of them are pretty simple
Here's the list of some of them:
| Alias | Description |
|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| help | Provides either list of categories, commands or information about them.
You may spot characters like `_` in Usage, there's how to interpret them:
* `[]` simply means attribute
* `_` before argument means it's non obligatory, you may skip it or set some random things in its place
* `{}` e.g. `[_user{mention/id}]` means you can put either user id or user mention in this place |
| game pingpong | Play ping pong match versus bot |
| 8ball | *Magically* answers your questions |
| stats | Shows information about you or given user |
| hug/kitty/doggie/waifu etc. | Gives you specified thing |
| lang | Sets language config of router to given file located in "Languages/" e.g. `go lang english.json` |
## Credits
* DiscordGo developers
* Creators of images used in kittie/doggie/kiss/hug/waifu and other commands :D
## Media
