Skip to content

SunflowerFuchs/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modular Discord Bot

A Bot for Discord, written in PHP.

The main goal was modularity, which enables it to easily be split into independently installable plugins.

Requirements

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();