[Release] Advanced discord command

discord
commands

#1

Today I present to you a new type of discord command. You have the normal discord command that puts it in the chat, but this one is a little different…

This is a picture of what it will do:
image

Command
The command for this script is normal /discord

What's in the download

server.lua
__resource.lua

download

Discord-Command-master.zip (1.1 KB)
Or via GitHub

V.2 Has been updated, this sends it through the client. This should work for people now!

*MUST READ
To make this work you must changeimage For the script to work!!!

Requirements
None this is a standalone script.

If you find any bugs or have a suggestion. Private message me on discord at caprancTV#0209.


#2

Message flag is unnecessary

No offense but this isn’t anything revolutionary…

Also why are you running this on the server and not passing to the client?


#3

This.

Please test your code before you release it. This won’t work.


#4

This works for me on my server? I’ll look into it.


#5

If you really want to make it ‘advanced’, have it open a HTML box with the invite link in there, then the person can just press “Join Server”


#6

That sound like a good idea, thanks man. I’ll look into that :slight_smile:


#7

So in the title it says Advanced discord command but what is the command? /discord ?


#8

Yes, but it doesnt put the discord link in the chat, it does this image


#9

So it is a command and you type /discord


#10

Yes, then it presents the user with that picture


#11

Okay thanks for the info i also think the ida from Sam_Behner is good


#12

Yes, infact i’m working on that right now so that should be out soon. Bare with :slight_smile:


#13

Exited for this!! :smiley:


#14

Here is an idea make a NUI Display the discord for a certain amount of time on screen then fade away, that way they can see the discord and hey if you wanted added a button they can click to copy the discord text. Now thats advanced and helpful, I understand its easier to make it a notification but Honestly its annoying when people have to keep doing /discord to see the url over and over again to type it in so they can go there. a quick button to allow them to have the text already clapboarded to paste it in a browser would be better. Just a suggestion.


#17

Not Working…


#18

Reply with the server.lua so i can take a look at it.


#19
------------ Made By caprancTV ------------

message = true
DisMessage = "Enter your discord here"
local DiscordMSG = "discord"

function ShowNotification(text)
	SetNotificationTextEntry("STRING")
	AddTextComponentString(text)
	DrawNotification(false, false)
end

RegisterCommand(DiscordMSG, function(p, g)
	if message then
	 ShowNotification(DisMessage)
	end
end)



#21

Direct download provides an outdated version, please update.


#23

Ok, thanks i’ve fixed that now!


#24

That looks fine,

------------ Made By caprancTV ------------

message = true
DisMessage = “Enter your discord here” – Change this to your discord invite, [REMEMBER IT MUST BE A PERMINENT INVITE]
local DiscordMSG = “discord”

function ShowNotification(text)
SetNotificationTextEntry(“STRING”)
AddTextComponentString(text)
DrawNotification(false, false)
end

RegisterCommand(DiscordMSG, function(p, g)
if message then
ShowNotification(DisMessage)
end
end)

print ("\n DiscordCMD | By caprancTV\n")

try this