Jump to content

How to make a Discord bot with skript! | Vixio Addon | Events & Commands


Vinixs

Recommended Posts

Vixio Events & Commands! 

I've noticed that It's been quite some time since i made the first Vixio tutorial, and I've been asked by a good amount of people to make another tutorial for events and commands. Giving that I've had time to relearn skript completely from the time I've been gone, I had a chance to relearn everything with the Vixio addon. If you haven't already, I highly recommend you check out my previous tutorial on setting up the bot before using any of these events. You can find that Here. Remember to also have Vixio installed.

The link below is a list of all Vixio syntaxes. This consists of Events, Expressions, Effects, and Conditions. 

Vixio Syntaxes - https://hastebin.com/afilixoqep.pl

Examples

Commands

For basic commands on discord, you can send messages to the channel with the bot.

discord command !test:
    trigger:
        send "Hello World" to channel with id "<ID>" with "<BOTNAME>"

If you'd like to keep your chats clean and only allow the command to be used in a certain channel, you can test if the command is executed in a channel.

discord command !test:
    trigger:
        if id of event-channel is "<CHANNEL_ID>":
            send "Hello World" to channel with id "<ID>" with "<BOTNAME>"

Embeds

Sending embeds is pretty simple once you get the hang of them. Here's an example of how to create an embed, 

discord command !test:
    trigger:
        if id of event-channel is "<CHANNEL_ID>":
            make embed:
                set description of embed to "<TEXT>"
                set color of the embed to <COLOR>
                add field named "<TEXT>" with value "<TEXT>" to embed
                add field named "<TEXT>" with value "<TEXT>" to embed
            send last created embed to event-channel with event-bot

 

There's a ton you can do with Vixio. You can display skript variables in discord, setup a punishment system, report system, etc. I plan to release some discord bots made with Vixio in the new  Minehut Market once It's released. I highly encourage server owners implement things like this on their servers. I rarely come across anyone who truly knows how to use Vixio. Please let me know if you come across any issues 😉 

 

  • Like 2

 

721034654735532112.gif.966bd6f1cb909ca87f1548614acb4131.gif

984d8967114f41b9e72bfd5c454fbd5d.png

achievement.png

Link to comment
Share on other sites

Pretty litty simpvinixs (jkjk <3). I sometimes do Vixio in my off time and this is a pretty good tutorial 🙂

  • Like 1

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

The way you do commands is weird, I've never seen it done like this, there is a lot more you can do with commands.

Such as:

discord command purge <number>:
    aliases: clear
    description: <STAFF>Remove a load of messages
    usage: purge <number>
    prefixes: "!", "%mention tag of event-bot% "
    roles: Moderator
    bots: "bot"
    executable in: guild
    trigger: 
        grab the last arg-1 messages in event-channel
        purge the grabbed messages with event-bot
        set {_error} to last vixio error 
        if {_error} is set:
            reply with "I ran into an error! `%{_error}%`"
            stop
        reply with "I have successfully purged %arg-1% messages" 

Specifying the description allows you to get the command description with the expression

[the] description[s] of %discordcommands%

You can also do that with aliases, usage, and prefixes.

💬 » Discord: @eliza#1414

🖥 » Twitch: @reportcardsmc

📃» Maker Profile: @plugin-labs

💻 » Project(s): Star

Hello, I'm Eliza or also known as ReportCards, I create servers and make Discord bots

Link to comment
Share on other sites

On 5/4/2020 at 5:21 AM, Vinixs said:

Vixio Events & Commands! 

I've noticed that It's been quite some time since i made the first Vixio tutorial, and I've been asked by a good amount of people to make another tutorial for events and commands. Giving that I've had time to relearn skript completely from the time I've been gone, I had a chance to relearn everything with the Vixio addon. If you haven't already, I highly recommend you check out my previous tutorial on setting up the bot before using any of these events. You can find that Here. Remember to also have Vixio installed.

The link below is a list of all Vixio syntaxes. This consists of Events, Expressions, Effects, and Conditions. 

Vixio Syntaxes - https://hastebin.com/afilixoqep.pl

Examples

Commands

For basic commands on discord, you can send messages to the channel with the bot.

discord command !test:
    trigger:
        send "Hello World" to channel with id "<ID>" with "<BOTNAME>"

If you'd like to keep your chats clean and only allow the command to be used in a certain channel, you can test if the command is executed in a channel.

discord command !test:
    trigger:
        if id of event-channel is "<CHANNEL_ID>":
            send "Hello World" to channel with id "<ID>" with "<BOTNAME>"

Embeds

Sending embeds is pretty simple once you get the hang of them. Here's an example of how to create an embed, 

discord command !test:
    trigger:
        if id of event-channel is "<CHANNEL_ID>":
            make embed:
                set description of embed to "<TEXT>"
                set color of the embed to <COLOR>
                add field named "<TEXT>" with value "<TEXT>" to embed
                add field named "<TEXT>" with value "<TEXT>" to embed
            send last created embed to event-channel with event-bot

 

There's a ton you can do with Vixio. You can display skript variables in discord, setup a punishment system, report system, etc. I plan to release some discord bots made with Vixio in the new  Minehut Market once It's released. I highly encourage server owners implement things like this on their servers. I rarely come across anyone who truly knows how to use Vixio. Please let me know if you come across any issues 😉 

 

*that feeling when the tutorial doesn’t tell you how to log in to vixio or how to get a discord bot*

You should add those to the tutorial to make it more complete

Link to comment
Share on other sites

35 minutes ago, DeltaRays said:

*that feeling when the tutorial doesn’t tell you how to log in to vixio or how to get a discord bot*

You should add those to the tutorial to make it more complete

They were in his old post.

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...