Skip to content
Why GitHub?
Enterprise
Explore
Marketplace
Pricing
Search
Sign in
Sign up
Blueyescat
/
Discord-Bot-Skript
454
Code Issues 0 Pull requests 0 Actions Security Insights
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Discord-Bot-Skript/Turkish.sk
@Blueyescat Blueyescat Update to Vixio 2.0.1
fe92be6 on 15 Aug 2019
90 lines (81 sloc) 3.43 KB
# ###############################################################################
# Blueyescat tarafından Skript ile Discord Botu örneği
#
# Güzel bir evaluate sistemi içeriyor.
#
# Vixio ve TuSKe Skript addonları gerektirir
# ###############################################################################
options:
# Bot Tokeni
#
# Botunun tokenini buradan alabilirsin: https://discordapp.com/developers
token: "MjE2OTIxNDEyNzgxMjExNjQ4.xXXXxxxXXxXxXXXxXXxxxXxxXXxxXxXXXXxxXxxXXXxxxx"
# Değiştirilmesi önemli değil (Discord'daki kullanıcı adı değil) ve iki değer de aynı olmalı
bot: "BotName"
botName: BotName
# Komut Önekleri
#
# Eğer komut öneklerinde emoji kullanmak istiyorsan, bu emojilerin unicode karakterlerini buradan al: https://emojipedia.org
# Örnek olarak Discord'da :apple: emojisi: "?"
#
# Eğer botunun etiketini kullanmak istiyorsan: <@id>
prefixes: !
# Yönetici kullanıcıların 18 haneli Discord ID'leri
#
# Birden fazla yönetici için listede "and" yerine "or" kullanmalısın.
admins: "012345678910111213", "312111019876543210" or "981713114610522013"
on load:
if {@bot} parsed as bot is not set:
login to {@token} with name {@bot}
set status of {@bot} to online
on unload:
set status of {@bot} to do not disturb
discord command evaluate <text>:
aliases: eval
prefixes: {@prefixes}
bots: {@botName}
trigger:
if discord id of event-user is {@admins}:
set {_code} to regex replace "^\s+" with "" in arg-1
if first 3 characters of {_code} is "```":
if last 3 characters of {_code} is "```":
if first 5 characters of {_code} is "```vb": # Kod bloklarında VB.Net dili desteği
set {_code} to subtext of {_code} from character 7 to (length of {_code} - 3)
else:
set {_code} to subtext of {_code} from character 4 to (length of {_code} - 3)
else:
create embed:
set description of the embed to ":x: Geçersiz kod bloğu!"
set color of the embed to color from rgb 255, 0, 0
reply with the last created embed
stop
evaluate logging in {_errors::*}: {_code}
if {_errors::*} is set:
loop {_errors::*}:
set {_parse::*} to loop-value parsed as "%text% \(TuSKe\/evaluate.sk, line %integer%\: %text%'\)"
add "**Satır %{_parse::2}%:** *%{_parse::1}%*%nl%**>** ``%{_parse::3}%``" to {_lines::*}
create embed:
set title of the embed to ":x: Evaluate Hataları(%size of {_errors::*}%)"
set description of the embed to join {_lines::*} with new line
set color of the embed to color from rgb 255, 0, 0
reply with the last created embed
else:
reply with ":x: Bu komutu sadece yöneticiler kullanabilir!"
discord command purge <text>:
aliases: purgemessages, clear, clearmessages
prefixes: {@prefixes}
executable in: guild
bots: {@botName}
trigger:
if discord id of event-user is {@admins}:
set {_count} to arg-1 parsed as number
if {_count} is greater than 0:
grab the last {_count} messages in event-channel
purge the grabbed messages with event-bot
reply with ":white_check_mark: Başarıyla %{_count}% mesaj temizlendi!" and store the message in {_message}
wait 2 seconds
delete random message of {_message} with event-bot
else:
reply with ":x: Kullanım: **%used prefix%**%used command% **<**bir pozitif sayı**>**"
else:
reply with ":x: Bu komutu sadece yöneticiler kullanabilir!"