Hello,
I am coding a bot using the Skript addon Vixio. My bot was working a few days ago and it suddenly just stopped working. I made sure that the token was correct. Here is my code
options:
Bot Prefixes: .
Main Bot Prefix: .
Bot Name: HighSkyFlys Helper
Bot Token: [Not included]
on script load:
create vixio bot:
enable the guild members intent
enable the guild bans intent
enable the guild emojis intent
enable the guild invites intent
enable the guild voice states intent
enable the guild presences intent
enable the guild messages intent
enable the guild message reactions intent
enable the direct messages intent
enable the direct message reactions intent
enable the direct message typing intent
login to "{@Bot Token}" with the name "{@Bot Name}"
set {BotStatus} to false
on chat:
send "%player%: %message%" to channel with id "774409395127189546" with "{@Bot Name}"
on guild message received:
if discord id of event-channel is "774409395127189546":
broadcast "&f[&bDiscord&f] %discord name of event-user%: %event-message%"
every 1 second:
if {BotStatus} is false:
set {BotStatus} to true
mark "{@Bot Name}" as playing "on HighSkyFly! Join me on HighSkyFly.minehut.gg!"
wait 15 seconds
mark "{@Bot Name}" as watching "all you kids out there"
wait 15 seconds
set {BotStatus} to false
discord command help:
prefixes: {@Bot Prefixes}
trigger:
create embed:
set description of embed to ":postbox: **I sent you a list of things I can do in your DMs, %mention tag of event-user%!**"
send last created embed to event-channel with event-bot
wait 1 second
create embed:
set title of the embed to "** {@Bot Name}'s Help Menu**"
set the color of embed to red
add field named " " with value " " to embed
add field named "**Commands**" with value "**{@Main Bot Prefix}help** - DM you this help menu %nl% **{@Main Bot Prefix}status** - Get the status of the Minecraft server %nl% **{@Main Bot Prefix}golem** - " to embed
send last created embed to event-user with event-bot
discord command status:
aliases: stats
prefixes: {@Bot Prefixes}
trigger:
create embed:
set color of embed to green
set title of the embed to "HighSkyFly Server Stats"
add field named "**Status:** Online" with value " " to embed
add field named "**Players Online:**" with value "%{PlayersOnline}%" to embed
send last created embed to event-channel with event-bot
discord command purge <number>:
prefixes: {@Bot Prefixes}
trigger:
grab the last arg-1 messages in event-channel
purge the grabbed messages with event-bot
grab the last 1 messages in event-channel
send ":white_check_mark: Succesfully purged **%arg-1%** messages from **%event-channel%**!" to event-channel with event-bot
On top of that, when it was working, everything the bot send was duplicated. The only thing that was not duped was the chat from MC to discord (Discord to MC was duped tho). Other than that, every message was sent twice.
Please help, as I would really like to continue working on my bot!
Thanks,
MinecraftMan1013