Code Monkey home page Code Monkey logo

espybot's Introduction

About

Espybot is a Discord bot written in PHP, using MySQL for chat logs and configuration storage.

Requirements

  • OS: Linux 64-bit (Windows is difficult to set up this bot on and voice support does not work.)
  • PHP: Version 5.6 64-bit (32bit does not work due to IDs being 64bit integers.)
  • PHP Modules: mysqlnd, PDO, pdo_mysql
  • MySQL: MySQL 5.6+ (Tested with MariaDB 10)

Installing

To install all dependencies, run the following commands:

cd /path/to/project/
./composer.phar install

To setup the database, run the following commands:

cd /path/to/project/
echo "create database espybot" | mysql -u root -p
mysql -u root -p espybot < espybot.sql

Copy the included config config/config.ini.default as config/config.ini and edit with your desired options. This assumes you have registered a BOT account with Discord and have the token already.

Now to start the bot:

cd /path/to/project/
php espybot.php

Troubleshooting

If debug mode is enabled in config.ini, all websocket connection messages are shown as well as chat and what the bot is doing. This can be used to help diagnose why the bot isn't responding or not connecting.

espybot's People

Contributors

elitetheespeon avatar

Watchers

 avatar

Forkers

mhwh-dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.