RPGo

command module
v0.0.0-...-bf7c91d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 16 Imported by: 0

README

License golang golang-version commit build-CI

RPGo 💣

Simple Discord Bot for a School project written in GO. This bot will allow you to create your own RPG character and fight against enormous monsters to become the strongest one.

Project features

  • ✅ Create a character
  • ⏱ Have specific character classes
  • ⏱ Have a random background spawned per character created

Authors

Athénais Dussordet

Alexandre Lellouche

Last but not least : Thomas Raineau

Usage

git config core.hooksPath .githooks

Configure GitHooks

cp docker-compose.yaml.dist docker-compose.yaml

Docker configuration override, don't forget to add the Token and SQL variables

docker-compose up --build

Run the project

Resources

External libraries used :

  • discordgo : used to connect to the Discord API
  • gomock : used to mock functions in command tests
  • sqlmock : used to mock sql functions in repository test

Pattern implemented

The command pattern is implemented throughout the project as it is well suited for an RPG Discord bot. Here is some documentation on how we implemented it.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package commands is a generated GoMock package.
Package commands is a generated GoMock package.
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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