You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
fonts | 6 years ago | |
img | 6 years ago | |
paper | 6 years ago | |
presentation | 6 years ago | |
project_proposal | 6 years ago | |
src | 6 years ago | |
test/Commands | 6 years ago | |
.env.example | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE.md | 6 years ago | |
README.md | 3 years ago | |
banner.txt | 6 years ago | |
benbot.service | 5 years ago | |
benbot.todo | 6 years ago | |
bot | 6 years ago | |
composer.json | 5 years ago | |
composer.lock | 5 years ago | |
copypasta.txt | 6 years ago | |
gallows.txt | 6 years ago | |
miscjokes.txt | 6 years ago | |
phpunit.xml | 6 years ago | |
run.php | 6 years ago | |
yomamajokes.txt | 6 years ago |
README.md
benbot
this bot is non-functional
This is a Discord bot I've been working on. Under heavy development. It was my senior project.
Feel free to clone or fork this project and try your hand at making a bot.
Set up
Requires PHP 7.1.4 or later and Composer
git clone https://github.com/benharri/benbot && cd benbot
- Install DiscordPHP and dependencies:
composer install
- Get your Discord API Key and save it in
.env
(copy or rename.env.example
and paste your keys in) - --optional save your API keys in
.env
for openweathermap.org, cleverbot.com, and a phone number for the text command - Run the bot
./bot start
If you want to keep your bot running in the background, run it as
./bot nohup
. If bash isn't available, you can run the bot with justphp run.php
(andnohup php run.php &
to run in the background)
Commands
////// ////// //
// // //// ////// // // //// ////////
////// //////// // // ////// // // //
// // // // // // // // // //
////// ////// // // ////// //// ////
-------------------------------------------------------------
- a bot made by benh. avatar by hirose.
;8ball <your question to ask here> - ask the mighty 8-ball
;ascii [font] <words> - creates ascii word art
;chat <what you want to say> - talk to benbot
;dm [@user] [message] - sends a dm
;fonts - change your message to another font
;get <thing to find> - retrieve a definition
;img <name of image to show|list|save|rm> - save and retrieve images
;joke [chucknorris|yomama|dad] - tells a random joke
;kaomoji [sad|happy|angry|confused|surprised] - shows a cool japanese emoji face thing
;poll <question> - yes/no poll. lasts 30 seconds.
;roll [number of sides] - rolls an n-sided die (defaults to 6-sided)
;server - displays information about the server
;set <this> <that> - sets this to that
;text_benh [message] - sends an SMS to benh
;time [@user] - looks up times in different time zones. you can save a preferred city.
;unset <thing to remove> - remove a definition
;weather [@user|city search] - get current weather
-------------------------------------------------------------
;help [command] - get more information about a specific command
commands are case-insensitive.
[] denotes an optional argument.
<> denotes a required argument.
| denotes available options.