discord bot in php
Go to file
Ben Harris 7ce373b0dd Update 'README.md' 2020-07-28 14:40:52 -04:00
fonts fix permissions for fonts 2017-10-31 14:45:06 -04:00
img fix permissions for fonts 2017-10-31 14:45:06 -04:00
paper fix permissions for fonts 2017-10-31 14:45:06 -04:00
presentation fix permissions for fonts 2017-10-31 14:45:06 -04:00
project_proposal fix permissions for fonts 2017-10-31 14:45:06 -04:00
src fix permissions for fonts 2017-10-31 14:45:06 -04:00
test/Commands fix permissions for fonts 2017-10-31 14:45:06 -04:00
.env.example fix permissions for fonts 2017-10-31 14:45:06 -04:00
.gitignore fix permissions for fonts 2017-10-31 14:45:06 -04:00
LICENSE.md fix permissions for fonts 2017-10-31 14:45:06 -04:00
README.md Update 'README.md' 2020-07-28 14:40:52 -04:00
banner.txt fix permissions for fonts 2017-10-31 14:45:06 -04:00
benbot.service add systemd unit and update deps 2018-05-02 15:35:19 -04:00
benbot.todo fix permissions for fonts 2017-10-31 14:45:06 -04:00
bot change hostname of sync script 2017-09-19 12:00:42 -04:00
composer.json add systemd unit and update deps 2018-05-02 15:35:19 -04:00
composer.lock add systemd unit and update deps 2018-05-02 15:35:19 -04:00
copypasta.txt fix permissions for fonts 2017-10-31 14:45:06 -04:00
gallows.txt fix permissions for fonts 2017-10-31 14:45:06 -04:00
miscjokes.txt fix permissions for fonts 2017-10-31 14:45:06 -04:00
phpunit.xml fix permissions for fonts 2017-10-31 14:45:06 -04:00
run.php Apply fixes from StyleCI 2017-05-01 19:33:37 +00:00
yomamajokes.txt fix permissions for fonts 2017-10-31 14:45:06 -04:00

README.md

benbot

this bot is non-functional

Add benbot to your server

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

  1. git clone https://github.com/benharri/benbot && cd benbot
  2. Install DiscordPHP and dependencies: composer install
  3. Get your Discord API Key and save it in .env (copy or rename .env.example and paste your keys in)
  4. --optional save your API keys in .env for openweathermap.org, cleverbot.com, and a phone number for the text command
  5. 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 just php run.php (and nohup 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.