Jump to content

How to use Vixio (Discord bots with Skript)


_iZ_

Recommended Posts

 

      

    M I N E H U T  C O M M U N I T Y  F A Q

HOW TO MAKE A VIXIO DISCORD BOT

    REQUIREMENTS: Skript, Vixio

    DIFFICULTY: Medium

     

Introduction to Vixio

Vixio is one of the many Skript addons that are available on Minehut. It allows you to make a fully functional and customizable Discord bot using Skript’s syntax along with Vixio’s syntax in a normal Skript (.sk) file. Because the bot is made this way, the functionality is only limited to what Skript allows you to do. In this tutorial, you will learn how to set up a Vixio bot and some common functionalities that come along with it.     

 

Application Setup

The first thing you’re gonna need to do when setting up a Vixio bot is to make the application. An application is the discord terminology for a bot, and setting it up is as easy as clicking a few buttons. 

First, go to https://discord.com/developers. If this is your first time visiting this page, you may be prompted to log-in using your discord account. Simply log-in and you should be brought to the applications page. 

Next, you need to create your application. Click the “New Application” button at the top-right of the page to do so. Once you’ve done that, you will be prompted to create a name for your application. This can be anything, and it can be changed at any time once it’s been created.

1.thumb.png.833d1855959b778d22675d57d3749a02.png

948061229_ScreenShot2021-02-25at6_28_34PM.thumb.png.630f1ed8f2ceaf6b96b8b0d6d5bdb5f4.png

After your application has been created, you can input your bot’s general information. This includes the name, description (optional) and a profile picture. Again, this information can all be changed in the future by visiting this same page. (Note: Be sure to save your changes before leaving this page)

438868165_ScreenShot2021-02-25at6_33_05PM.png.53f3f297322ce06ec88eee26aebaa02e.png

Once you’ve entered the general information for your bot, go to the “Bot” tab and click the “Add Bot” button. In the “Privileged Gateway Intents” section, be sure to enable “Server Members Intent”. If you do not do this, your bot will not work. Be sure to also disable the “Public Bot” option. Doing this will make sure that the bot will not be able to be invited to other servers unless invited by you. (Note: The bot will function the same way in any server it is in, so for security reasons, you are going to want to leave this disabled)

724851039_ScreenShot2021-02-25at7_02_01PM.png.3131cb9592b3e678cf6132a6072e2337.png

853919885_ScreenShot2021-02-25at7_06_37PM.png.5e8e09b7750580aac311431a4c3eb53c.png

After you’ve done this, go to the “OAuth2” tab. Scroll down until you see the section called “Scopes”. From there, select “bot” and select the permissions you wish to grant your bot. Since you are making this bot for personal use and are coding it from scratch, I recommend choosing the “Administrator” permission so that you can make it do anything without having to worry about giving it additional permissions. (Note: Giving your bot this permission will allow it to do anything on any Discord servers it is in)

118645687_ScreenShot2021-02-25at6_59_08PM.png.6230e19ca76dd1cd58398791f776ed5a.png

956114746_ScreenShot2021-02-25at7_00_41PM.png.1fdd0213fc0c5f7404c81baffd9b44b0.png

Once you’ve done all of this, copy the URL that has been generated and paste it into a new tab. You will be prompted to add it to a server. Select the server you wish to add the bot to and click “Authorize”. You will most likely be asked to complete a captcha for security reasons. After doing this, you should be brought to another page advising you to close that tab. (Note: Keep the developer portal open, you will need it later)

1439955577_ScreenShot2021-02-25at7_08_12PM.png.f5fbc46d0b3c096aefb3c53511d0e020.png

1919099146_ScreenShot2021-02-25at7_08_49PM.png.abd50d4d6c3ec9379723ffc96093c63b.png567199949_ScreenShot2021-02-25at7_12_08PM.png.426ad9ab3dcf24eb7aee9f57df2033fa.png

Your bot should now be in your server. Although it is there, it will have no functionality because it hasn’t been configured to do anything. You will also notice that your bot is offline. This is because bots need to be told when to log-in and log-out. In any case when using Vixio, the bot will need to be logged-in using Skript and will automatically be logged-out whenever your Minecraft server stops.

1075960366_ScreenShot2021-02-25at7_15_23PM.png.e72d6d87fbb824dbcdde7990160720bd.png

 

Script Setup

Once your bot is on the server, you can start creating your script. Go back to the “Bot” tab and copy your bot token. You will need this to log-in to your bot within your script. 

373509402_ScreenShot2021-02-26at2_18_53PM.png.b3c72045ce15cc094e340ebb02d2776c.png

Once you’ve copied your bot token, you have two options. The first option and the one I recommend is to create an option for your bot token. The second option is to paste it manually whenever you need to use it. If you are choosing the options route, I would also recommend creating an option for the name of your bot. 

options:

   token: (Your token)

   bot: Iz's Secretary

 

Once you’ve done all of this, you can add an event to log-in to your bot by using the following effect:

(login|connect) to %string% (using|with) [the] name %string%

The first %string% is the expression used for your bot token. The second is the name of your bot. (Note: Doing this twice without logging out of the bot will cause the bot to execute its actions twice. I recommend using the “on skript load” event to prevent this from happening)

Example:

on skript load:

   login to "{@token}" with the name "{@bot}"

 

Another useful effect that Vixio offers is logging out of the bot. This can be done with the following effect.

(logout [of]|shutdown) %bot/string%

The %bot/string% expression is the name of your bot.

Example:

on skript unload:

   logout of "{@bot}"

 

Here is an example of a full script to log in and log out of your bot:

options:

   token: (Your token)

   bot: Iz's Secretary


on skript load:

   login to "{@token}" with the name "{@bot}"


on skript unload:

   logout of "{@bot}"

 

Once you’ve completed the setup, your bot should now come online when your server starts!

522785158_ScreenShot2021-03-01at12_09_12AM.png.abb71fa06f5e9d44aca4e73f87426ee2.png

 

Additional Information

A full list of Vixio syntax can be found here: https://olyno.github.io/VixioSite/

If you need help with Skript, a useful forum post can be found here: https://forums.minehut.com/topic/31934-how-to-use-skript/?tab=comments#comment-98786

If you need more help with Vixio, head over to the Skript discussion on the forums, or join our Discord! You can also feel free to personally message me if you have any questions related to this topic.

 

    Compiled by the Minehut Staff Team

Edited by _iz_
  • Like 2

» IGN: _iZ_ «

» Joined: 12/18/2016 «

» VIP: 1/13/2018 «

» Helper: 1/29/2021 «

» [<3]: 5/8/2021 «

» Skript dev «

» Discord: iZz#0420 «

I have diabetes

React to this if I was helpful, found this interesting, or you're just nice 🙂

Link to comment
Share on other sites

Absolutely incredible CFAQ, _iz_. You did a great job going in-depth and explaining how to make a discord bot using Vixio. I am extremely impressed, and I hope to see more CFAQs like this from you in the future. 

  • Thanks 1

𝚄𝚗𝚝𝚛𝚎𝚊𝚝𝚎𝚍

𝔻𝕚𝕤𝕔𝕠𝕣𝕕: @𝕌𝕟𝕥𝕣𝕖𝕒𝕥𝕖𝕕#𝟘𝟘𝟘𝟙

News & Updates  Rules • Helper Application

Reports • Appeals

𝚂𝚝𝚊𝚏𝚏 𝚘𝚗 𝙼𝚒𝚗𝚎𝚑𝚞𝚝 𝚜𝚒𝚗𝚌𝚎 𝙹𝚞𝚗𝚎 𝟹𝟶𝚝𝚑, 𝟸𝟶𝟸𝟶

Link to comment
Share on other sites

  • 4 weeks later...

Awesome i can finally make a discord bot work by myself 

 

 

Divider clipart letter, Picture #2612096 divider clipart letter

image.png.10b931115c030e1215d1ae007a9d516f.png card

 

Rank - V.I.P

Joined on - Uhh I forgot 

Discord - Xcard#0001

Youtube - Pweas sweakibe :3 ♥️

Free Skripts! - [My website coming soon]

Github - Nothing here yet .-.

 

Rules - READ THEM!                                 Don't click pweas! I said NO!                              SecretJoin :>

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...