Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

discord.net discord command services

Anyone here know a bit about discord.net command services ?

Ok i need help adding commands at runtime dynamically.

Code
Imports Discord
Imports Discord.Commands
Imports Discord.WebSocket

Public Class TestCommands : Inherits ModuleBase(Of SocketCommandContext)

    <Command("test1")>
    <Remarks("User")>
    Public Async Function Test1() As Task
        Await ReplyAsync("this is test1")
    End Function

    <Command("test2")>
    <Remarks("User")>
    Public Async Function Test2() As Task
        Await ReplyAsync("this is test2")
    End Function

    <Command("test3")>
        <Remarks("User")>
        Public Async Function Test3() As Task
            Await ReplyAsync("this is test3")
        End Function

    End Class

How would i add these commands at runtime, either single, a file or a .dll file.

I have been trying this for a coupe of weeks now with no success. If you have an example file that would be great.

Thanks for any help
[Image: 8Wj7xYL.gif]
Signature Created by Gσđfαtђα
(Feb 21, 2019 02:30 PM)System[X] Wrote:  Anyone here know a bit about discord.net command services ?

Ok i need help adding commands at runtime dynamically.

Code
Imports Discord
Imports Discord.Commands
Imports Discord.WebSocket

Public Class TestCommands : Inherits ModuleBase(Of SocketCommandContext)

   <Command("test1")>
   <Remarks("User")>
   Public Async Function Test1() As Task
       Await ReplyAsync("this is test1")
   End Function

   <Command("test2")>
   <Remarks("User")>
   Public Async Function Test2() As Task
       Await ReplyAsync("this is test2")
   End Function

   <Command("test3")>
       <Remarks("User")>
       Public Async Function Test3() As Task
           Await ReplyAsync("this is test3")
       End Function

   End Class

How would i add these commands at runtime, either single, a file or a .dll file.

I have been trying this for a coupe of weeks now with no success. If you have an example file that would be great.

Thanks for any help

Take a look through this help site regarding the topic:

https://discord.foxbot.me/latest/guides/...intro.html
Found my comment helpful? Consider donating βytes.
BTC is always appreciated:
34RBnceUVghshgkG7Njr2JGQG7LAEhHhsP

Want to test your skills? Try my
Hacker's Quiz
(Feb 21, 2019 02:37 PM)The Social Engineer Wrote:  Take a look through this help site regarding the topic:

https://discord.foxbot.me/latest/guides/...intro.html

I have a fully working bot, but i am wanting to extend the commands without having to open the source, add the new commands then re compile. this is why im asking how to add them dynamically, I have read a lot of Help Docs for this but can not put the code together to do it.

Thanks
[Image: 8Wj7xYL.gif]
Signature Created by Gσđfαtђα


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by ImDeepWithWindowsJul 4, 2020 06:19 PM 0 167 Jul 4, 2020 06:19 PM
Last Post: ImDeepWithWindows
[Shell] by friiz1337May 14, 2020 04:09 AM 2 207 May 14, 2020 04:09 AM
Last Post: sed-i
[C#] by OG GangstaApr 13, 2014 05:10 PM 25 614 Apr 13, 2014 05:10 PM
Last Post: idb.