► In this tutorial, we use an addon called DiSky to create a simple discord bot!
#
# A Skript addon that allows you to create, manage and edit Discord bots.
# https://github.com/DiSkyOrg/DiSky
#
define new bot named "Bot":
token: "MTAwODczODU4ODE4OTUzNjM1OA.GoFzVO.Tzlw-rqTO98moWibDZc8_BuFcVlikbaqRxahQA"
intents: default intents
policy: all
auto reconnect: true
compression: none
discord command ping:
prefixes: !
trigger:
reply with "Pong!"
discord command hi [<text>]:
prefixes: !
trigger:
if arg-1 is not set:
reply with "Enter a player to say hi to!"
else:
reply with "Hi %arg-1%!"
discord command playing [<text>]:
prefixes: !
trigger:
if arg-1 is not set:
reply with "Enter a game to play!"
else:
set the presence of the bot named "Bot" to playing arg-1
► This tutorial was brought to you by Skripting Tutorials, check out the channel for more helpful tutorials.
You must be logged in to comment