Git Product home page Git Product logo

5l1v3r1 / vikingbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ueland/vikingbot

0.0 1.0 0.0 189 KB

Vikingbot is yet another simple PHP based IRC bot with support for plugins and secure IRC servers. The bot requires Unix/Linux shell access with PHP support and SSL support in PHP for use against secure IRC servers.

License: GNU General Public License v3.0

PHP 99.80% Shell 0.20%

vikingbot's Introduction

VikingBot

VikingBot is yet another simple PHP based IRC bot with support for plugins and secure IRC servers.
The bot requires Unix/Linux shell access with PHP and SSL support in PHP for use against secure IRC servers.

INSTALLING

  1. copy config.dist.php to config.php cp config.dist.php config.php
  2. update config.php with correct settings nano config.php (undeclared settings will be declared by config.dist.php)
  3. run the start script sh start.sh
  4. check log output cat logs/vikingbot.log

You can define different config files: sh start.sh config=anotherConfigFile.php

SUPPORTED COMMANDS

The following commands are supported out of the box (aka they are not controlled by plugins):

  • !exit [adminPassword] Shuts the bot down
  • !restart [adminPassword] Restarts the bot
  • !help [command] Sends a list of commands or the description of a given command to the user

The following commands are supported via the plugins that are installed by default:

  • !botlog [adminPassword] [rows=10] The bot responds with the [rows] last rows of the bot log file
  • !memory The bot responds with memory usage statistics
  • !ping The bot responds with a pong to say that it is still alive
  • !uptime The bot responds with the it's uptime
  • !upgrade [adminPassword] The bot will attempt to upgrade itself and its plugins to the latest version via git pull
  • !op <nick> <channel> [adminPassword] The bot attempts to give user on channel OP status

INSTALLED PLUGINS

The following plugins are installed by default:

  • fileReaderPlugin
    • Outputs data from db/fileReaderOutput.db to channel specified in the plugin, useful for GIT/SVN commit hooks or anything other that should push data to a channel
  • botLogPlugin
    • Plugin that responds to !botlog with the last N rows of the bot's log file
  • memoryPlugin
    • Plugin that responds to !memory with information about memory usage
  • opPlugin
    • Plugin that respons to !op ... by oping a user if the bot has op itself
  • pingPlugin
    • Plugin that responds to !ping with a "PONG".
  • uptimePlugin
    • Plugin that responds to !uptime with the bots uptime
  • rssPlugin
    • Plugin that pulls RSS feeds at specified intervals and outputs new RSS elements to a specified channel
  • upgradePlugin
    • Plugin that upgrades the bot and its plugins via git pull
  • autoOpPlugin
    • Plugin that gives +o to everyone or to certain nicks on channel join.

THIRD-PARTY PLUGINS

Links to other plugins for VikingBot:

Make sure to install your plugins into the thirdparty-plugins folder so git ignores them!

TEXT FORMATTING

If you wish, you can format text the bot sends to a channel/user via your plugins. Use any of the following codes to apply the relevant text color or format. The text will keep the given format until either end of string, or the {reset} tag.

Available colors:
{white}, {black}, {blue}, {green}, {red}, {darkRed}, {purple}, {orange}, {yellow}, {lime}, {teal}, {cyan}, {lightBlue}, {pink}, {grey} & {lightGrey}

Other tags:
{reset}, {bold} & {underline}

Example:
"{bold}i am bold and {red}red{reset}, but now i am normal"

PS: Different IRC-clients may display colors differently, some servers may even deny color usage!

BUGS/PROBLEMS?

Feel free to contact me via IRC on EfNet/Freenode/Undernet (Ueland).

vikingbot's People

Contributors

dreamphreak avatar khena avatar renini avatar ueland avatar

Watchers

 avatar

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.