git pls y u do dis
This commit is contained in:
parent
31dce61f36
commit
f7ad5c9cb7
@ -257,39 +257,6 @@ export default bot => {
|
||||
}
|
||||
}));
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
bot._trigger.set("irpg", new bot.trigger({
|
||||
call: /^(\.|\/)irpg/i,
|
||||
set: "uwe",
|
||||
f: e => {
|
||||
const user = e.args[0] || e.user.nick;
|
||||
rp("https://irpg.zneb.org/players.php").then(top => {
|
||||
let prank = 0
|
||||
, i = 1;
|
||||
const dom = new jsdom.JSDOM(top);
|
||||
let playerlist = dom.window.document.querySelectorAll("ol > li");
|
||||
let player = null;
|
||||
for(let p of playerlist) {
|
||||
if (p.innerHTML.includes(`player=${user}">`)) {
|
||||
prank = i;
|
||||
player = p;
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if(player !== null) {
|
||||
const [, plevel, pclass, puntil] = player.innerHTML.match(/.*, the level (.*?) (.*?)\. Next level in (.*?)\./);
|
||||
e.reply(`([i]${prank} / ${playerlist.length}[/i]) [b]${user}[/b], the [b]${pclass}[/b]: level: ${plevel}, next level in ${puntil}.`);
|
||||
}
|
||||
else
|
||||
e.reply(`player [b]${user}[/b] was not found`);
|
||||
});
|
||||
|
||||
}
|
||||
}));
|
||||
|
||||
>>>>>>> 2b731c211cc1fd05c446f3dbd2934bbc2c55d231
|
||||
bot._trigger.set("blah", new bot.trigger({
|
||||
call: /^[A-ZÄÖÜẞ](?: [A-ZÄÖÜẞ]){1,5}$/,
|
||||
set: "uwe",
|
||||
|
Loading…
Reference in New Issue
Block a user