Skript:
Code:
options:
bot: Program
token:
botname: Program
on join:
login to "{@token}" with the name "{@botname}"
mark "{@bot}" as playing "%number of players% kişi"
on quit:
login to "{@token}" with the name "{@botname}"
mark "{@bot}" as playing "%number of players% kişi"
on chat:
send ":loudspeaker: %player%: %message%" to channel with id "channelid" with {@bot}
discord command /konsol [<text>]:
trigger:
if event-member has permission manage server:
if arg-1 is set:
execute console command "%arg-1%"
reply with ":white_check_mark: Komutu başarıyla konsola gönderdim!"
else:
reply with ":x: Birşey göndermen gerek. "
else:
reply with ":x: Bu komut için gereken izinlere sahip değilsin, %mention tag of event-user%!"
discord command /sunucudurum:
trigger:
create embed:
set description of the embed to ":fire: **Irongard** Sunucu Bilgileri"
set color of the embed to color from rgb 255, 0, 0
add field named ":notebook_with_decorative_cover: Sürüm" with value "" to embed
add field named "{@sürüm}" with value "" to embed
add field named ":trophy: Aktif Oyuncu" with value "" to embed
add field named "%number of all players%/100" with value "%{list::*}%" to embed
send the last created embed to event-channel with {@bot}