discord bot in php
Go to file
Ben Harris efe8853f16 dev stuff 2017-04-16 23:18:32 -04:00
img bamboozle 2017-03-14 13:00:59 -04:00
project_proposal messagepack instead of json 2017-03-26 21:23:49 -04:00
src dev stuff 2017-04-16 23:18:32 -04:00
.env.example refactor util fn names, env_stuff.php replaced with .env 2017-03-24 16:25:27 -04:00
.gitignore dev stuff 2017-04-16 23:18:32 -04:00
LICENSE.md add license, start music and tictactoe 2017-04-16 13:59:33 -04:00
README.md refactor util fn names, env_stuff.php replaced with .env 2017-03-24 16:25:27 -04:00
banner.txt Command classesgit status 2017-04-07 19:09:43 -04:00
benbot.todo update todolist 2017-04-11 01:20:06 -04:00
bot perms 2017-04-13 23:20:25 -04:00
bot.php starting to add commands to new bot setup 2017-04-09 20:21:55 -04:00
composer.json add stringy dependency 2017-04-05 01:10:15 -04:00
composer.lock not workie 2017-04-06 15:53:28 -04:00
copypasta.txt copypasta 2017-03-19 15:54:22 -04:00
kaomoji.php style changes 2017-03-25 10:48:01 -04:00
miscjokes.txt fix jokes file and bot 2017-04-13 02:16:15 -04:00
run.php starting to add commands to new bot setup 2017-04-09 20:21:55 -04:00
yomamajokes.txt add jokes from file 2017-03-18 12:32:12 -04:00

README.md

benbot

Add benbot to your server

This is a discord bot I've been working on. Under heavy development.

Feel free to clone this project and try your hand at making a bot.

Set up

  1. git clone https://github.com/benharri/testcord && cd testcord
  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 the bot running in the background, run it as ./bot nohup

If bash isn't available, you can run the bot with just php bot.php (and nohup php bot.php & to run in the background)

Commands

            //////                        //////                //
           //    //    ////    //////    //    //    ////    ////////
          //////    ////////  //    //  //////    //    //    //
         //    //  //        //    //  //    //  //    //    //
        //////      //////  //    //  //////      ////        ////
  • - a bot made by benh. avatar by hirose.

  • ;time <@user> - looks up current time for yourself or another user

  • ;weather <city|@user> - looks up weather for a city, other user, or yourself

  • ;roll <number of sides> - rolls an n-sided die. defaults to 6.

  • ;text_benh <message> - text a message to benh

  • ;avatar <@user> - gets the avatar for a user

  • ;set <this> <that> - sets this to that ;get <thing to get> - gets a value from the definitions. you can also omit - get (;<thing to get>)

  • ;unset <def to remove> - removes a definition

  • ;8ball <question to ask the mighty 8ball> - tells your fortune

  • ;kaomoji <sad|happy|angry|confused|surprised> - sends random kaomoji

  • ;joke <chucknorris|yomama|dad> - tells a random joke

  • ;block <msg> - turn a message into block text

  • ;img <image to show> - image tools (;help img for more info)

  • ; <msg> - talk to ben (you can do this in a DM with me too!)

  • ;help <command> - get more information about a specific command

  • commands will still work if the first letter is capitalized.