Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot General Tech Discord SACNR Monitor Bot

 
  • 0 Vote(s) - 0 Average
Discord SACNR Monitor Bot
Bork
Offline

Burgershot Member
Posts: 31
Threads: 4
Joined: Apr 2019
Reputation: 4
#1
2019-04-17, 10:22 AM
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!
hual
Offline

King

Posts: 106
Threads: 3
Joined: Feb 2019
Reputation: 7
Location: Bulgaria
#2
2019-04-17, 02:55 PM
That's neat but it looks prone to abuse
JustMichael
Offline

Forum Manager

Posts: 189
Threads: 3
Joined: Feb 2019
Reputation: 17
Location: England
#3
2019-04-17, 03:01 PM
(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)
Remember to always refer to J0sh as `J0sh...`

@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder)
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer)
AlphaDM (Tech Support)

# Services
Burgershot.gg (Forum Manager)
open.mp (Member)

~ Languages/Frameworks
Pawn, C, C++, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
Bork
Offline

Burgershot Member
Posts: 31
Threads: 4
Joined: Apr 2019
Reputation: 4
#4
2019-04-17, 05:56 PM (This post was last modified: 2019-04-17, 05:57 PM by Bork.)
(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.
BigETI
Offline

open.mp Developer

Posts: 107
Threads: 5
Joined: Feb 2019
Reputation: 12
Location: Germany
#5
2019-04-19, 02:48 AM
You could either use the samp-servers-api to get server information, or just make the bot query the specified server.
[Image: github-samp-icon.png]
Gravityfalls
Offline

Burgershot Member
Posts: 105
Threads: 7
Joined: Apr 2019
Reputation: 2
#6
2019-04-19, 03:38 AM
Mashallah brother! good job. I rate it 10/10.
Wolf
Offline

aka Wolfy
Posts: 104
Threads: 9
Joined: Apr 2019
Reputation: 0
Location: Unknowm
#7
2019-04-19, 05:54 AM
Cool stuff, useful as well
Meow
Markski
Offline

Burgershot Clerk

Posts: 127
Threads: 6
Joined: Apr 2019
Reputation: 5
Location: La Plata, Argentina
#8
2019-04-23, 12:22 AM
This is great.
Website
javelin
Offline

Burgershot Member
Posts: 20
Threads: 0
Joined: Apr 2019
Reputation: 1
#9
2019-04-23, 01:03 AM
Mashallah!
Somil
Offline

Burgershot Member
Posts: 16
Threads: 0
Joined: Apr 2019
Reputation: 0
#10
2019-04-23, 04:27 AM
Well done, Bork.
Woozie_Cross
Offline

Burgershot Member
Posts: 8
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Russia
#11
2019-04-23, 07:31 AM
Ok so
Zomic
Offline

Burgershot Member
Posts: 10
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Pakistan
#12
2019-04-23, 06:20 PM
Huh? it will be advertisement.
[Image: q7fGeq3.png]
Bork
Offline

Burgershot Member
Posts: 31
Threads: 4
Joined: Apr 2019
Reputation: 4
#13
2019-04-23, 08:27 PM (This post was last modified: 2019-04-23, 08:27 PM by Bork.)
(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.
Markski
Offline

Burgershot Clerk

Posts: 127
Threads: 6
Joined: Apr 2019
Reputation: 5
Location: La Plata, Argentina
#14
2019-05-27, 01:50 PM (This post was last modified: 2019-05-27, 01:52 PM by Markski.)
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?
Website
Sweet
Offline

Burgershot Member
Posts: 14
Threads: 2
Joined: Jan 2021
Reputation: 0
Location: Kenya
#15
2021-01-03, 01:53 PM
Great work Bork..people like you make these things easier
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode