PHP Discord Bot
Easily write your own Discord bot in PHP.
Setup
- Clone
composer install
- Register an application on Discord's Developer Portal.
- Select "Bot" and click "Add Bot."
- Reveal the token, and copy it.
- Create a
token.txt
and paste it there. php discord-bot.php
To get your bot to join your guild, use https://discord.com/oauth2/authorize?scope=bot&permissions=8&client_id=CLIENT_ID
where CLIENT_ID
should be replaced by your app's client ID, which you can find in the "General Information" section.
Finally, you can get to hacking in the plugins/
folder!