Discord Bot

Post your Custom Scripts or Packages.

Moderator: POL Developer

Post Reply
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Discord Bot

Post by DevGIB »

Hi All,
Please see attached V1 of my discord bot.
It comes with 3 templates and is somewhat documented.
There is a basic command included as well for testing purposes and as an example in how to use in your own scripts.
If you have any questions please don't hesitate to ask.

IMPORTANT
I don't own rights to any of the images that are linked in bots config file.

Any questions please don't hesitate to ask but it should be fairly straight forward.
Attachments
discordBot.rar
(6.65 KiB) Downloaded 414 times
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Discord Bot

Post by Yukiko »

Finally!
I wondered when you would post this. :)
I'm sure a lot of developers will make use of it
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Re: Discord Bot

Post by DevGIB »

I got some more changes that i want to make/include and then i'll add it to the distro.
It's really nothing special, just a wrapper for code i'd already given to select people and anyone who asked.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Discord Bot

Post by Yukiko »

In keeping with the principle of keeping the Distro as simple as possible it might be a good idea to make it an optional pkg for the Distro. If it can be made to be easily dropped in I think that would be the way to go.

We really need a download area where users can submit and maintain their submissions of custom scripts so they are easily located. They can easily get lost in the forums but if we have a dedicated download section we could categorize which scripts are for the Distro and which are not and those who submit them can more easily post and update their submissions.
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Re: Discord Bot

Post by DevGIB »

I was thinking more along the lines of including it in the Distro (i'm not even sure if the Distro potentially has any current injection points for Discord) but having it disabled in a CFG file and then we can add a note to initialization that if its wanted it needs to be setup and enabled in that CFG.

Alternatively if we ever got to implementing the pkg.cfg requires or optional settings which effected compilation it could be done that way but that's probably a topic which needs its own thread.
romerocox
New User
Posts: 1
Joined: Thu Nov 22, 2018 8:04 pm

Re: Discord Bot

Post by romerocox »

Heyy! This is awesome! Thanks for the good work!

I was trying to make it work, but when i try to compile it says

Code: Select all

Token '(' cannot follow token 'HTTPRequest'
Function HTTPRequest() is not defined.
Error compiling statement at C:/pol/pkg/discordBot/include/outbound.inc, Line 69
User avatar
CWO
POL Expert
Posts: 1158
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: Discord Bot

Post by CWO »

Are you writing your own script and including outbound.inc? HTTPRequest() is defined in os.em so you need a "use os;" in the script.
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Re: Discord Bot

Post by DevGIB »

Another question would be which core version are you working with?
Post Reply