ValZarGaming's Discord bot built on DiscordPHP with documentation available here, albeit limited at the moment, as well as a class reference. Feel free to ask questions in the Discord server above or directly in DiscordPHP's server.
Before you start using this Library, you need to know how PHP works, you need to know the language and you need to know how Event Loops and Promises work. This is a fundamental requirement before you start. Without this knowledge, you will only suffer.
- Can I run TOTK-Recipe-Calculator on a webserver (e.g. Apache, nginx)?
- No, this bot will only run in CLI. If you want to have an interface for your bot you can integrate react/http with your bot and run it through CLI. If you only want a standalone calculator for your website, use the standalone version. If that's what you're looking for, you can find it here.
- PHP 8.0
- Composer
ext-json
ext-zlib
Unfortunately PHP on Windows does not have access to the Windows Certificate Store. This is an issue because TLS gets used and as such certificate verification gets applied (turning this off is not an option).
You will notice this issue by your script exiting immediately after one loop turn without any errors. Unfortunately there is for some reason no error or exception.
As such users of this library need to download a Certificate Authority extract from the cURL website.
The path to the caextract must be set in the php.ini
for openssl.cafile
.
Additionally, the functions located within the webapi interface do not function, or otherwise do not do so as intended. This is a hard limit due to Windows' implementation of POSIX. If you need access to all functions within the webapi other than just viewing the bot's logs remotely we recommend hosting on a Linux-based OS. You may also try using WSL, however we do not guarantee its functionality as we do not support it.
- The latest PHP version.
-
- One of
ext-uv
(recommended),ext-libev
orext-event
for a faster, and more performant event loop.
- One of
ext-mbstring
if handling non-english characters.ext-gmp
if using 32-bit PHP.
- 64-bit Linux or Darwin based OS.
- If you are running on Windows, you must be using PHP 8.0.
ext-sodium
- FFmpeg
See main.php for function examples.
We are open to contributions, just open a pull request and we will review it.
MIT License, © Valithor Obsidion and other contributers 2023-present.