Plein d'aides de jeu ! Avec un bot discord pour l'instant.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Arthur POULET 214654e7ff discord: improve !refs 8 months ago
bin discord: improve !refs 8 months ago
migrations database: add models relationships and seed 9 months ago
scenes actions: add all generic & space battle actions 9 months ago
src discord: improve !refs 8 months ago
test tests: fix scene unit tests 9 months ago
.gitignore Mise à jour de '.gitignore' 9 months ago
.rubocop.yml discord: improve !refs 8 months ago
Gemfile deps: add yard for doc generation 9 months ago
Gemfile.lock deps: add yard for doc generation 9 months ago
README.md doc: update some more commands 9 months ago
Rakefile rake: clean up rakefile 9 months ago
config.ru roll: add dices 9 months ago

README.md

Metal Adventures: Aides de jeu

Ce logiciel est un site web qui permet de faciliter l'utilisation de règles de Metal Adventures.

Le logiciel est à la fois un framework d'implémentation de règles de jeu, leur implémentation, et une interface web pour les utiliser de manière simple. Les règles sont implémentées "rules sas writting".

Le logiciel utilise des "utilisateurs" pour enregistrer des séries pour ne pas avoir à retaper une configuration entière à chaque lancé de dès lors d'une partie/campagne.

Installation

Have ruby 3 installed along with bundle (it should probably be shipped with ruby via your package manager).

bundle install
# 1. create you bot via https://discord.com/developers/applications
# 2. invite the bot
# https://discord.com/api/oauth2/authorize?client_id=XXX&permissions=534723950656&scope=bot%20applications.commands
echo DISCORD_TOKEN=XXXX           >  .env
echo DATABASE_URL=sqlite://dev.db >> .env

bundle exec rake db:migrate

Run discord

bundle exec ./src/discord/bot.rb

Development

Run tests

bundle exec rake test

Generate local dock

bundle exec yard -- src

Discord: Create a new plugin

  1. Create a new file src/discord/xxx_plugin.rb
  2. Make a class in it. The initialize method take one parameter (the bot).
  3. Plug the module in the bot src/discord/bot.rb with .plug
  4. Run the bot.