eRepBot is a new eRepublik bot created by Darkmantle and Count Drakula using the PircBOT Framework for Java. This framework allows for a bot that runs different modules, linked together by a central controller. This will, in the future, allow for users to submit or request custom modules to be added for their own communities.
The bot gathers data from the eRepublik API and uses a linking feature to allow users to "register" with the bot. This means the bot stores their IRC name, Citizen name and Citizen ID in a database, using this data whenever they make requests to reduce the speed it takes and the need to enter their name.
The bot is still under development but all current features are working and will be released as V1 soon.
This is the main module of the bot and includes the commands needed to run the bot. These are the core functions of the bot and allow it to manipulate IRC directly by joining channels (manually & automatically) and using IRC data as requested, such as to ping/highlight all users in a room.
The eRepublik module allows an IRC user to gather data from the game's API and output it into an IRC channel. This module also manipulates data to return other information such as influence and soon citizen, country and battle statistics.
The urlmanip module allows you to shorten URL's from IRC without opening a browser! It also lets you expand by bitly (bit.ly, bitly.com and j.mp) or goo.gl so you can see the page URL and title that it redirects too, all in seconds before you visit!
Requests the bot to join a channel.
|!join 1 2|
Example: !join #eRepublik
Requests the bot to stay in your channel and auto-join on reconnect.
Must be channel owner to use this command.
|!stay 1 2|
Example: !stay #eRepublik
Sends a message to the channel, highlighting all the users in the room.
Tags - IMPORTANT
Some commands have tags you can use to provide other information. Please note the following when using tags:
- If using a name in the command you must type the name before the tags
- Always do a space between the tag and the input, e.g: "!fc -f 10"
Register Citizen to bot
Links your IRC name and citizen name so you do not have to enter your name when using the other commands.
Example: !register darkmantle
Returns basic data about your citizen or the citizen entered
Example: !lp darkmantle or !lp
Returns how much damage you do with each weapon Q
Example: !fc darkmantle or !fc
|-f||Number of fights|
Damage until rank
Returns how much damage you need to deal until the rank specified. Must use rank tag!
|!dmg 1 2|
Example: !dmg darkmantle -r 63 or !dmg -r 63
Fights until rank
Returns how many fights left until you tank up
Example: !fights darkmantle or !fights
Returns profile and donate links for the citizen entered
Example: !links darkmantle or !links
Returns a shorter bit.ly URL that redirects to any URL you enter
Example: !shorten http://erepublik.com
|1||URL (must start with http://)||Yes|
Returns the URL and title of the page that any bitly(bit.ly, bitly.com and j.mp) or goo.gl URL redirects to
Example: !expand http://bit.ly/12e3m1R
|1||Short URL (must start with http://)||Yes|