discord chat bot
play

Discord Chat Bot Asynchronous PHP Benjamin Hamilton Harris May 2, - PowerPoint PPT Presentation

Discord Chat Bot Asynchronous PHP Benjamin Hamilton Harris May 2, 2017 Northern Michigan University Introduction Discord Discord Chat Client Marketed towards gamers Rich text chat Silky smooth voice chat 1 Discord API


  1. Discord Chat Bot Asynchronous PHP Benjamin Hamilton Harris May 2, 2017 Northern Michigan University

  2. Introduction

  3. Discord Discord Chat Client • Marketed towards gamers • Rich text chat • Silky smooth voice chat 1

  4. Discord API Discord exposes a REST-ful HTTP API • Raw HTTP requests are cumbersome • Many wrapper libraries available • JavaScript, Python most popular 2

  5. Project Info

  6. Technology Stack Technologies • PHP 7 • DiscordPHP API wrapper library • ReactPHP Promises for Async • Composer 3

  7. Project Background Proposal • Started as passion project • General purpose chat bot • Rapidly growing feature set 4

  8. Grading

  9. Possible Points • Talk to Cleverbot [3 pts] address for a user [2 pts] • Send emails to a saved [2 pts] • Send me a text message later [2 pts] • Save text and retrieve it them later [5 pts] • Save images and retrieve user’s permissions [2 pts] • Get User Info [1 pts] commands based on • Permissions for any user [1 pts] • Send direct message to Status/Uptime [1 pts] • Display Bot • Get Server Info [2 pts] arbitrary User [1 pts] • Get Profile Photo for 5

  10. Possible Points, cont. channel [10 pts] pts] • 8-Ball style fortunes [2 • Roll an n-sided die [1 pts] art) [3 pts] unicode fonts, and ASCII • Text transform (emojis, Hangman) [10 pts] • Chat games (TicTacToe, [5 pts] • Create and vote on polls YouTube to voice • Internet lookups – Stream music from Google Images [5 pts] – Send an image from [2 pts] – Look up a random joke and weather [2 pts] for each user for time – Save a preferred city – Time for any city [3 pts] pts] – Weather for any city [3 6

  11. Demo Time! 7

  12. 65/70 possible points from proposal achieved Grading Scale 8 63+ → A 56+ → B 49+ → C 42+ → D 35+ → F

  13. Possible Extra Points Things I’ve done that might be worth more points! • Edit and delete messages in the chat • Run a command line process and return stdout as a message • Evaluate arbitrary PHP code and return the results to the chat I am the only user allowed to evaluate arbitrary code. 9

  14. Any Questions? 10

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend