Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.06 KB

Presentation

This repository is a set of examples on how to use the DiscordPHP library to grant full power to your bots !

Installation

composer install
cp app/config.php.dist app/config.php   # don't forget to edit your configuration

Usage

Start the bot:

php bot.php

Commandes

  • !cat sends a random picture of a cat, thanks to the cat api.
  • !tg or !tagueule sends a link to this gif.
  • If a message contains http://onlywat.ch, the bot sends the same gif as above.
  • !ow.timeleft shows the remaining time before Overwatch's launch.
  • !dice 1d20+5 is a RPG tool to throw dice. You can use shortcuts like !dice 20+3 (⇔ !dice 1d20+3) or !dice 18 (⇔ !dice 1d18+0)
  • !nms.timeleft shows the remaining time before No Man's Sky's launch.
  • !propre sends a proper gif.
  • !nice (or juste "nice") is dark humor certified..
  • !titre ( ͡° ͜ʖ ͡°).