Resource icon

UODisc - a discord bot Alpha-0.3.1

No permission to download

Skyfly

Citizen
Skyfly submitted a new resource:

UODisc - a discord bot - A discord bot based on DSharpPlus

UODisc - a Discord Bot based on DSharpPlus

With this tool you can communicate and act between discord and the server.

I developed this with the intention of making it easy to implement a discord bot with features while leaving as much as possible open to the user, currently the bot does not have much commands or big features as this is a first WIP release but that will change later on.

Some things I plan to include are:
Sending and receiving pm's if the server supports it
Managing online...

Read more about this resource...
 

tr1age

Citizen
Oh man if you can get this to do global chat that would be so amazing thank you for this resource!
 

Skyfly

Citizen
Love the stuff.
Notice I must re-linkaccount every time I restart the server
Something I missed or its default??
It should be saved when the world is saved

What messages does the client write to the console? (they're all prefixed with "Discord: ")
 

TheDarkNoise

Citizen
What messages does the client write to the console? (they're all prefixed with "Discord: ")

df2cae70384f2ca106df11e9b7a4a97c.png


2e5720e4dd6ce04f52bc379cd0207390.png

between the timeline i did a server restart * shutdown * in console just to be sure it did save
and now i start up the server and i get that i dont have permission to use it

edit forgot to add

this is my discord.cfg


Token=NzYzMDA5NTA2MjUwMDYzOTAy.X3xd-g.Mj7H9diHNklvfRlHD453fZDJ_a0

GuildId=286902589822337026

CommandPrefix=$

CommandChannelId=762250722347450398

LogChannelId=762250722347450398

DONT worry
its a test empty discord server i use it on to make sure its working before i do anything else
will rechange/make it all in the discord.cfg including the Bot itself :p
 

Skyfly

Citizen
What messages does the client write to the console? (they're all prefixed with "Discord: ")

df2cae70384f2ca106df11e9b7a4a97c.png


2e5720e4dd6ce04f52bc379cd0207390.png

between the timeline i did a server restart * shutdown * in console just to be sure it did save
and now i start up the server and i get that i dont have permission to use it

edit forgot to add

this is my discord.cfg


Token=

GuildId=286902589822337026

CommandPrefix=$

CommandChannelId=762250722347450398

LogChannelId=762250722347450398

DONT worry
its a test empty discord server i use it on to make sure its working before i do anything else
will rechange/make it all in the discord.cfg including the Bot itself :p
Never share your discord token in public! (if discord didn't revoke the token by themselves automatically already you should generate a new one by yourself as soon as possible!)

For some reason i used the wrong integer for the for-loop which gets the users accounts, fixed it in the source (will do a release at a later time)

For now just go into UODisc/DiscordUserLink.cs and change the following line (line 141):
C#:
for (int i = 0; i < accs.Count; i++)
To:
C#:
for (int i = 0; i < length; i++)
 

TheDarkNoise

Citizen
The discord token I'm aware not to share but this isn't just a test bot and it can't do any harm because it sits on a empty discord with me only and other bots xD

Okay will test it tomorrow after work :)
 

Skyfly

Citizen
Did you recompile? it worked out when i tested it
if you recompiled and it still doesn't work, delete the Saves/Discord/Client.bin and try again
 

TheDarkNoise

Citizen
Strange
i did remove the client.bin restart ( recompile ) and start up and linkaccount did saveworld on discord and console
closed it reopen and didnt save :s
 

Zarcoos

Citizen
Al momento non ho intenzione di supportare versioni precedenti di servuo,
l'errore sopra si verifica poiché le versioni precedenti di servuo non utilizzano le nuove funzionalità del linguagg

I don't have any plans to currently support older servuo versions,
the error above comes since the older versions of servuo don't use the new language features
i am using the latest version of servuo pub57
Post automatically merged:

No the error comes because mono does not support the default literals
could you tell me how i could solve the problem?