This repository is a set of examples on how to use the DiscordPHP library to grant full power to your bots !
composer install
cp app/config.php.dist app/config.php # don't forget to edit your configuration
Start the bot:
php bot.php
!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
( ͡° ͜ʖ ͡°).