open.mp forum
Discord SACNR Monitor Bot - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: General (https://forum.open.mp/forumdisplay.php?fid=19)
--- Forum: Tech (https://forum.open.mp/forumdisplay.php?fid=21)
--- Thread: Discord SACNR Monitor Bot (/showthread.php?tid=319)



Discord SACNR Monitor Bot - Bork - 2019-04-17

I wrote a discord bot that will query information from the SACNR Monitor based on a IP and port you provide. It currently does not support URL's with an A record for an IP but I will eventually bring that out.



The invite link can be found here:?https://discordapp.com/api/oauth2/authorize?client_id=565207337883795487&permissions=8&scope=bot

To use the bot, all you need to type is:



Code:
!sacnr ip port(default 7777)



You'll get information like this thrown out:

[Image: EQGraNx.png]



For those who are wondering where it's being hosted and what it was written in, dakyskye?is hosting the bot and it was written in C#.

Have fun!


RE: Discord SACNR Monitor Bot - hual - 2019-04-17

That's neat but it looks prone to abuse


RE: Discord SACNR Monitor Bot - JustMichael - 2019-04-17

(2019-04-17, 10:22 AM)Bork Wrote: I wrote a discord bot that will query information from the SACNR Monitor based on a IP and port you provide. It currently does not support URL's with an A record for an IP but I will eventually bring that out.



The invite link can be found here:?https://discordapp.com/api/oauth2/authorize?client_id=565207337883795487&permissions=8&scope=bot

To use the bot, all you need to type is:



Code:
!sacnr ip port(default 7777)



You'll get information like this thrown out:

[Image: EQGraNx.png]



For those who are wondering where it's being hosted and what it was written in, dakyskye?is hosting the bot and it was written in C#.

Have fun!



Allow a configurable timeout between uses, and also cache the information for 24 hours. (or something like that)


RE: Discord SACNR Monitor Bot - Bork - 2019-04-17

(2019-04-17, 02:55 PM)hual Wrote: That's neat but it looks prone to abuse



In what way?

(2019-04-17, 03:01 PM)JustMichael Wrote: Allow a configurable timeout between uses, and also cache the information for 24 hours. (or something like that)

Not a bad idea. Will work on it. I should probably open source the project as well.


RE: Discord SACNR Monitor Bot - BigETI - 2019-04-19

You could either use the samp-servers-api to get server information, or just make the bot query the specified server.


RE: Discord SACNR Monitor Bot - Gravityfalls - 2019-04-19

Mashallah brother! good job. I rate it 10/10.


RE: Discord SACNR Monitor Bot - Wolf - 2019-04-19

Cool stuff, useful as well


RE: Discord SACNR Monitor Bot - Markski - 2019-04-23

This is great.


RE: Discord SACNR Monitor Bot - javelin - 2019-04-23

Mashallah!


RE: Discord SACNR Monitor Bot - Somil - 2019-04-23

Well done, Bork.


RE: Discord SACNR Monitor Bot - Woozie_Cross - 2019-04-23

Ok so


RE: Discord SACNR Monitor Bot - Zomic - 2019-04-23

Huh? it will be advertisement.


RE: Discord SACNR Monitor Bot - Bork - 2019-04-23

(2019-04-19, 02:48 AM)BigETI Wrote: You could either use the samp-servers-api to get server information, or just make the bot query the specified server.



I'm thinking of working on a fork where it can be centred towards a specific discord & its game server. Also, what updates are due and what would people like to see from this bot? I've already started working on v1.1 which will support URL's in place of a IP, however, it's not necessarily consistent right now, heh.

I would like to apologise for the recent downtime, the bot has been undergoing some maintenance and I've definitely realised that I need a separate testing bot token, oof.

I will also be working on open sourcing the project sometime soon however I don't think it's been perfected enough to do that.

(2019-04-23, 06:20 PM)Zomic Wrote: Huh? it will be advertisement.



I'm just gonna go ahead and ignore this comment.


RE: Discord SACNR Monitor Bot - Markski - 2019-05-27

You don't really need to make your own querying thing and handle the querying load yourself. We don't mind doing it - The whole point of the SACNR Monitor API is to let people do things like these. Your only worry however should be to have a reasonable cooldown for using the command.

Also, any idea when the bot will be online again?


RE: Discord SACNR Monitor Bot - Sweet - 2021-01-03

Great work Bork..people like you make these things easier