ribels

command module
v0.0.0-...-441339d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

README

ribels

A recode of the bibels in go.

Running

The program starts from the main.go file. The utils folder holds different utilities like: osu api functions, name formatting and database related utils.

To run the bot you will need the go programming language and to have a PostgreSQL database setup. Before running the code you will need to setup a .env file. Here's an example setup:

DISCORD_TOKEN=your discord token
OSU_KEY=your osu api key
DATABASE_USER=username of database's owner
DATABASE_HOST=where the database is hosted
DATABASE_NAME=name of the database
DATABASE_PORT=the port on the host where the database is hosted

We just need to install a go package to interact with the discord api.

go get -u github.com/bwmarrin/discordgo

After that we can just run the bot:

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL