This commit is contained in:
Daniel Schmitz 2021-06-22 09:32:46 +08:00
parent 6943c6b2a9
commit b62d59c524
2 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,12 @@
# znc-idlerpg
ZNC module to handle logins to an IdleRPG game/channel on IRC automatically
ZNC module to handle logins to IdleRPG games on IRC automatically
## Instructions
- Can be loaded as a network module
- Compile the module with `znc-buildmod idlerpg.cpp` and copy it to your modules directory
- Load the mod in each network your want it to be active via `/znc loadmod idlerpg`
- Setup your IRPG account via `/znc *idlerpg set #channel irpgbotnickname username password`
- That's it!
## Functionality
Trying to login if the bot joins the channel or if you join the channel (possibly after a disconnect of either). It'll wait 10 seconds before it does after the join and only does so if the botnick is on the channel and has operator status (to make sure you are not sending your login to an imposter). Technically, most of it can be done via the perform module already, but this won't check if the bot actually is online and has operator status and also won't work if the bot reconnects and doesn't log you in automatically.

View file

@ -1,10 +1,6 @@
#include <znc/IRCNetwork.h>
#include <znc/Chan.h>
using std::map;
using std::set;
using std::vector;
#define IDLERPG_JOIN_LOGIN_WAIT_TIME 10
class CIdleRPGMod;
@ -180,5 +176,5 @@ void TModInfo<CIdleRPGMod>(CModInfo& Info) {
NETWORKMODULEDEFS(
CIdleRPGMod,
t_s("Automatically handles your login to IdleRPG games/channels.")
t_s("Automatically handles your login to an IdleRPG game/channel")
)