Samples/Examples and Informations about Virgo Discord Bot Engine.
You have Virgo, but you don't know how to use it? No problem! Just check out the Official Guide!.
Found a bug, or you want to suggest a feature? Feel free to write in the issues section of this repository.
Step one:
Create a new Discord application.
Step two:
After creating the application, go to "Bot" section and click "Add Bot" and then click"yes do it!" for the confirmation.
Step three:
IMPORTANT! Make sure to have this 2 flags enabled, or your Bot won't work!!
Step one:
Go to the control panel of virgo and login here with your credentials.
Step two:
Click on the server displayed in the center of the page With a name like this: {yourUsername} | virgo premium, then go to the file manager and open a file called config.json and change the following variables:
- token (line 5) -> Your Bot's Token
- permission_level (line 7) -> If you have a bot which moderates too, you must set this value to 2 or 3
- prefix (line 8) -> Your Bot's prefix
- presence (line 10) -> Can be online, idle, dnd, invisible
- cmd_dir (line 11) -> The name of the directory where your commands are stored (./Commands is default dir)
- status (line 12) -> Your Bot's activity
- logchannelid (line 14) -> The ID of the channel where the Bot will send the eventual logs, if there | Adjective field.
- events (from line 16) -> Events have their own section
- commands list (line 99/100) -> A list (Array) of your Commands. You MUST insert your command name here before running the bot or it will be ignored
How the first part (from token to log-channel) of the config.json should look like:
How the "events" part of the confing.json should look like:
(Remember: In the "script" field you should to add the script using virgoscript)
Commands
The names of virgo commands must end with .virgo (Ex: ping.virgo).
Go to the command directory (Usually is ./Command dir but you can change it on the config), click on "New file",
Write in the new file the script of the command (Using virgoScript), if you don't know how to make commands look at the Documentation.
Save the command as CommandName.virgo and then go to the config, at line 10, to the list (Array) of enabled command and add the name of the command (without the .virgo extension).
-
Config.json Example
-
Ping
-
Say
LukeIsHereToDevelop Developer |
NicoDev Main Developer |
Sunrisees Developer |
Copyright (c) 2021 Uncoded - Virgo