Autocompletion for bots commands

Comments

4 comments

  • WannaFry

    Like typing commands on Minecraft? That's a neat idea. Upvoted

    1
    Comment actions Permalink
  • Kai

    Hm, interesting. Perhaps a special feature for bot accounts that allows regular clients to interact with it? One feature being, as the OP suggests, autocompleting commands based on your permissions.

    As a bot developer, this opens up a whole nother world of functionality. Definitely upvoted!

    1
    Comment actions Permalink
  • •MGC•Mr_ChAI

    It's good idea, but the problem is that bot doesn't recieve commands - it receives messages and does something with it (for example, if it starts with '!cat' it sends an image with cat). So they need to make api has commands as commands, not just message event (and maybe prefixes). Or your program can send JSON with commands, their aliases and short descriptions, like https://hastebin.com/tapikofixi.json (or you can set them on https://discordapp.com/developers/applications/<app id>/bots). I don't know about other API wrappers, but discord.py has built-in ability to use commands in your code, not just doing shit with messages. Interface like in Minecraft 1.13 would be good (Mojang made the "Brigadier" library open-source, but it's on Java, not JS).Discord has built-in interface like this, but only for built-in Clyde commands (check screenshot)

    1
    Comment actions Permalink
  • 루아kr

    I want! :D

    0
    Comment actions Permalink

Please sign in to leave a comment.