Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 2.7 KB

INSTALL.md

File metadata and controls

46 lines (35 loc) · 2.7 KB

Installation:

  • The bot is written in PHP, and thus requires php to be installed.
  • The bot requires php PEAR to be installed with the Net_SmartIRC package.
    (You need to edit the path to the PEAR package in battlebot.php)
  • Change the bots main channel, channelarray suffix and login details in battlebot.php
    (Important! Change these or the bot will join existing channels!)
  • To add a game, check out the games folder and look at the structure of the default files.

Authenticate with Q:

  1. Let the bot join a channel in which you are OP (For example: #battlebot)
    NOTICE: Enable "!debug on" to see R/Q responses to the bot.
    WARNING: May cause security breach if everyone in the channel can view the query responses!
  2. !query R REQUESTOP <#channel>
  3. !query R REQUESTBOT <#channel>
  4. !query [email protected] CHANLEV <#channel> [nickname] +amno
    NOTICE: Disable "!debug off" if you turned it on!

Changelog:

UPDATE v2.0

The Pick-Up Game Operator Bot can now handle cross channel communication!

You can now freely change your nickname and the bot will update your name in the pug queue list!
Also, the bot will only automatically remove you from the line-up and, if needed, grant ownership to the next person in line if you leave ALL the channels on which the bot is hosted.

• The bot is now authenticated with Q so it can retain its operator status.
• It won't greet people anymore who join the channel, this could cause spam.
• It also won't say goodbye when people leave/quit the channel.
• It will only announce the queue if there is actually a pug in queue.
• When people !join or !leave a pug or quit all channels while they were in queue, it will update and print the game's info.

UPDATE v3.0

The Pick-Up Game Operator Bot can now handle votes!

• When you are in a queue, you can now use !callvote and !vote commands.
• Debug function added to view query responses from the bot.

The bot is capable of tracking the usernames accross all the pug's and updates the names when changed. A kickvote will work even if the player leaves the pug, changes his name, and joins again.

UPDATE v3.2

The Pick-Up Game Operator Bot can now autochoose teams!

  • You can now use !join [game] [mode] [skill] without specifying a team, the bot will automatically assign you.
    (It takes into account if you have been kicked and the team balance; % of team filled + team invites send)
  • You can now use !join [game] [mode] [skill] [team#] using a letter (A,B,etc as substitute for 1,2,etc) for [team#]