Raised This Month: $12 Target: $400
 3% 

[ANY] Discord Report


Post New Thread Reply   
 
Thread Tools Display Modes
ImScottyyy
Junior Member
Join Date: Oct 2016
Location: UK
Old 09-21-2017 , 23:41   Re: [ANY] Discord Report
Reply With Quote #21

Is there anyway that this could be edited so it could grab the IP of the server which the report is coming from and display it in the report message?
ImScottyyy is offline
drew73197
Junior Member
Join Date: Dec 2013
Old 09-22-2017 , 00:44   Re: [ANY] Discord Report
Reply With Quote #22

Quote:
Originally Posted by ImScottyyy View Post
Is there anyway that this could be edited so it could grab the IP of the server which the report is coming from and display it in the report message?
There most definitely is a way, but I’m unsure if it’s possible without the use of a 3rd party extension. This originally did give the IP with a link to quick connect, but some servers would return the local IP address of 127.0.0.1 and I ended up just removing that part entirely. So yes, but you’d have to add it yourself and most likely have to use a 3rd party extension to do it.
__________________
~Reo
drew73197 is offline
m4rkey
Junior Member
Join Date: Jul 2017
Old 09-22-2017 , 17:54   Re: [ANY] Discord Report
Reply With Quote #23

Quote:
Originally Posted by drew73197 View Post
There most definitely is a way, but I’m unsure if it’s possible without the use of a 3rd party extension. This originally did give the IP with a link to quick connect, but some servers would return the local IP address of 127.0.0.1 and I ended up just removing that part entirely. So yes, but you’d have to add it yourself and most likely have to use a 3rd party extension to do it.
This is quite easy to do with your discord report, infact I have already achieved this. In my own version of it.

It is not actually as difficult as you might think. You can just pass the server IP address from where the report was made and get the port and then input that into a database then read from the database and attach the two and create an ip address, and then use the bot code to do the rest of the work for you.

m4rkey is offline
drew73197
Junior Member
Join Date: Dec 2013
Old 10-04-2017 , 13:06   Re: [ANY] Discord Report
Reply With Quote #24

Quote:
Originally Posted by m4rkey View Post
This is quite easy to do with your discord report, infact I have already achieved this. In my own version of it.

It is not actually as difficult as you might think. You can just pass the server IP address from where the report was made and get the port and then input that into a database then read from the database and attach the two and create an ip address, and then use the bot code to do the rest of the work for you.

Sorry for my very late reply. That's cool you got it to work, this is my very first plugin I made so I wasn't really sure how to do anything lol. If you wanna commit the changes you've made on the GitHub page, that would be very much appreciated!
__________________
~Reo
drew73197 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 10-05-2017 , 02:34   Re: [ANY] Discord Report
Reply With Quote #25

Tip: I'd add in #pragma newdecls required and give this a recompile. I see you're mostly using new syntax but there's a few occurrences of old syntax in the plugin.

Last edited by 404UserNotFound; 10-05-2017 at 02:35.
404UserNotFound is offline
A_RM
AlliedModders Donor
Join Date: Oct 2016
Location: Canada
Old 10-24-2017 , 23:58   Re: [ANY] Discord Report
Reply With Quote #26

Quote:
Originally Posted by m4rkey View Post
This is quite easy to do with your discord report, infact I have already achieved this. In my own version of it.

It is not actually as difficult as you might think. You can just pass the server IP address from where the report was made and get the port and then input that into a database then read from the database and attach the two and create an ip address, and then use the bot code to do the rest of the work for you.

Would you be able to fork this on the repo?
A_RM is offline
GoldeneK
Member
Join Date: Oct 2016
Old 12-14-2018 , 20:05   Re: [ANY] Discord Report
Reply With Quote #27

Hi i have problem with nodejs bot:
Quote:
root@uw599:/home/report# nodejs reportBot.js

/home/report/reportBot.js:43
client.on('ready', () => {
^
SyntaxError: Unexpected token )
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js562)
at Function.Module._load (module.js12:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906
GoldeneK is offline
Jezis
AlliedModders Donor
Join Date: Jul 2016
Location: Czech Republic
Old 12-29-2018 , 18:44   Re: [ANY] Discord Report
Reply With Quote #28

I am really new with all this Discord stuff, but I gave it a try.
I cant really find out whats the bots id and whats bots token.
Thanks in advance.
__________________

Jezis is offline
Send a message via ICQ to Jezis
Edu_MochilaBR
Junior Member
Join Date: Dec 2016
Location: São Paulo - Brazil
Old 12-29-2018 , 20:56   Re: [ANY] Discord Report
Reply With Quote #29

Quote:
Originally Posted by Jezis View Post
I am really new with all this Discord stuff, but I gave it a try.
I cant really find out whats the bots id and whats bots token.
Thanks in advance.
https://github.com/Chikachi/DiscordI...ID-for-Discord

Maybe help.
Edu_MochilaBR is offline
kneign
New Member
Join Date: Jan 2016
Old 01-23-2019 , 01:04   Re: [ANY] Discord Report
Reply With Quote #30

Hey, nice Bot, but I get the following warnings:

"(node:18544) DeprecationWarning: Collection#find: pass a function instead
(node:18544) DeprecationWarning: Collection#find: pass a function instead
(node:18544) DeprecationWarning: Collection#find: pass a function instead"

Seems to react on the rows:

guild = client.guilds.find("id",config.serverID);
admin = guild.roles.find("name", config.adminRole);
channelReport = client.channels.find("name",channelName);

Can you maybe update them for the newer discord.js?

Last edited by kneign; 01-23-2019 at 01:04.
kneign is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode