sunflowerfuchs / discord-bot
An easily extendable discord bot, written in PHP
v0.1.3
2022-08-24 21:15 UTC
Requires
- php: >=8.1
- ext-json: *
- ext-pdo: *
- ext-sqlite3: *
- guzzlehttp/guzzle: ^7.2.0
- pecee/pixie: ^4.15
- psr/log: ^1.1.4
- ratchet/pawl: ^0.4.1
- react/event-loop: ^1.1.1
- spatie/emoji: ^3.0
- symfony/options-resolver: ^5.3.7
README
A Bot for Discord, written in PHP.
The main goal was modularity, which enables it to easily be split into independently installable plugins.
Requirements
- PHP >= 8.1
- composer
- discord developer application
Quickstart
The following snippet is all that is required to run the basic bot with the default plugins.
$bot = new SunflowerFuchs\DiscordBot\Bot([ 'token' => 'XXXXX' ]); $bot->run();
Other features can easily be added to the Bot by just adding more plugins, like for example the TikTok Plugin.
$bot = new SunflowerFuchs\DiscordBot\Bot($options); $bot->registerPlugin(new TiktokPlugin()); $bot->run();