jaxkdev / discordbot
A PocketMine-MP Plugin that hosts your very own discord bot using DiscordPHP.
Installs: 276
Dependents: 0
Suggesters: 0
Security: 0
Stars: 51
Watchers: 1
Forks: 11
Open Issues: 6
Requires
- php: ^8.1
- php-64bit: *
- composer/ca-bundle: ^1.3
- pocketmine/binaryutils: 0.2.4
- react/promise: v2.10.0
- team-reflex/discord-php: dev-master#aa3f3bc
Requires (Dev)
README
DiscordBot is not a plugin that provides anything for players/users, this plugin provides Developers with an extensive API to interact with a Discord Bot via DiscordPHP
Here are a list of plugins that provide user functionality:
- Chat Bridge | Bi-directional chat between Discord and Minecraft
- Discord Account | Link your Discord account to your Minecraft account
- More to be listed (If you use this plugin open a PR to add your plugin here)
Developers, see API.md for more information on how to use the DiscordBot API
Advanced Developers, see Network_API.md for more information on the network protocol / external bots.
Requirements
Installation
PocketMine-MP
All Releases v2.0.0 onwards have been tested and released on Poggit, you can download the latest release from Poggit or from GitHub
GitHub release being slightly more optimised, useless files are not included.
Composer
This plugin is also available via composer to use as a dev-dependency when using PHPStan, PHPUnit, or similar.
You can install it simply with composer require --dev jaxkdev/discordbot
To see more information about the project via composer/packagist please see here.
Please note the package name is
jaxkdev/discordbot
and notdiscordbot-pmmp/discordbot
Source
No support is given for users or developers running from source, I myself build the plugin into a phar before testing.
If you do become an active contributor to the plugin I will help you set up efficient workflows to ease testing.
Credits
Contributors
Libraries
-
Discord-PHP/DiscordPHP - Used internally to communicate with discord.
-
ReactPHP/Promise - Used to provide a promise API Library to developers.
-
[Dev] PHPStan/PHPStan - Used to analyse the plugins code for any potential problems.
-
[Dev] PHP-CS-Fixer/PHP-CS-Fixer - Used to maintain the plugins code to a standard.
-
[Dev] - Used to maintain a changelog format.
And many more sub-dependencies that allow the above to function.