Skript Paylaşımı Vixio Serisi #7 | Giriş-Çıkış Mesajları & Otomatik Rol

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
F

Furkan Doğan

Ziyaretçi
✧ Gereksinimler;
➔ Skript v2.2-dev36 |
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

➔ Vixio 2.0.4 |
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
*NOT* 2.0.7 sürümünde sorun bulunmaktadır. 2.0.4 sürümünü kullanmamız gerekmekte. İki sürüm arasında hiçbir fark yoktur.

✧ Komutlar;

➔ <prefix[örnek: !]>oto-rol | Otomatik Rol yardım menüsünü iletir.
➔ <prefix[örnek: !]>oto-rol ayarla <Rol ID> | Belirtilen ID Otomatik Rol olarak ayarlanır.
➔ <prefix[örnek: !]>oto-rol aç | Otomatik Rol modu aktif edilir.
➔ <prefix[örnek: !]>oto-rol kapat | Otomatik Rol modu kapatılır.

✧ Görseller;
join.png

quit.png

autorolehelp.png

autorolesetting.png

autoroleon.png

autoroleoff.png

autoroleadded.png

✧ Kurulum/Bilgilendirme;
➔ Aşağıda verilen kodu Scripts klasörünüze atın. Ardından kodun
ilk satırlarından bulunan Options kısmındaki bilgileri doldurun. Bilgiler doğru girilmezse
sistem çalışmayacaktır.
Bilgileri doldurduktan sonra kaydedip çıkın ve /sk reload <dosya adı>
yazın.
➔ Kodda bulunan her şeyi dilediğiniz gibi değiştirebilirsiniz.

✧ Kod;
Kod:
options:
    Prefix: !
    Token: "Buraya Yapıştırın" #Token
    Bot: "Buraya Yapıştırın" #Bot Adı
    KanalID: "Buraya Yapıştırın" #Giriş-Çıkış Mesajları Kanalı ID
    SunucuID: "Buraya Yapıştırın" #Discord Sunucu ID

on load:
    if {@Bot} parsed as bot is not set:
        login to {@Token} with name {@Bot}  
    
on unload:
    logout {@Bot}

on member join guild:
    make embed:
        set the thumbnail of embed to "%avatar of event-user%"
        set title of embed to title with text "Aramıza Yeni Bir Üye Katıldı!"
        set description of embed to "Hoş Geldin %mention tag of event-member%, Discord Sunucumuz Seninle Beraber **%amount of discord members of event-guild%** Kişi Oldu, Güzel Vakitler Geçirmen Dileğiyle.. %newline%%newline%**Hesabın Oluşum Tarihi;**%newline%```%discord join date of event-member%```%newline%%newline%**ID;**%newline%```%discord id of event-member%```"
        set the timestamp of embed to now
        set color of embed to green 
    send last created embed to channel with id {@KanalID} with {@Bot}
    if {otorolactivated} is true:  
        add role with id "%{otorol}%" to roles of event-member in event-guild
        
on member leave guild:
    make embed:
        set the thumbnail of embed to "%avatar of event-user%"
        set title of embed to title with text "Aramızdan Bir Üye Ayrıldı!"
        set description of embed to "Güle Güle %mention tag of event-user% :confused:  Bu Üyenin Ayrılması Sonucu Discord Sunucumuzda **%amount of discord members of event-guild%** Kişi Kaldı."
        set color of embed to red
        set the timestamp of embed to now
    send last created embed to channel with id {@KanalID} with {@Bot} 
        
discord command oto-rol [<text>] [<integer>]:
    prefixes: {@Prefix}
    aliases: otorol
    trigger:
        if event-member has permission manage server:
            set {channel} to discord id of event-channel
            set {user} to event-member
            discordAutoRole(args 1, args 2)
        else:
            add reaction "x" to event-message with {@Bot}

function discordAutoRole(t: text, role: integer):
    if {_t} isn't set:
        make embed:
            set title of embed to title with text "Otomatik Rol"
            set description of embed to "%nl%%nl%:question: Otomatik Rol Komutları;%nl%```{@Prefix}otorol ayarla <Rol ID> | Yazılan Rol Otomatik Rol Olarak Ayarlanır.```%nl%```{@Prefix}otorol aç | Otomatik Rol Modu Aktif Edilir.```%nl%```{@Prefix}otorol kapat | Otomatik Rol Modu Kapanır.```"
            set color of embed to green
            set the footer of embed to footer with text "%{user}% Tarafından İstendi."
            set the timestamp of embed to now
        send last created embed to channel with id "%{channel}%" with {@Bot}
    if {_t} is "ayarla":
        if {_role} is set:
            set {otorol} to {_role}
            make embed:
                set title of embed to title with text "Otomatik Rol"
                set description of embed to "%nl%%nl%:tada: Otomatik Rol Başarıyla Ayarlandı.%nl%%nl%:question:**Rol (ID);**%nl%```%{_role}%```"
                set color of embed to purple
                set the footer of embed to footer with text "%{user}% Tarafından İstendi."
                set the timestamp of embed to now
            send last created embed to channel with id "%{channel}%" with {@Bot}
        else:
            send "%mention tag of {user}%, Bir Rol Belirtmelisiniz, Örnek: **{@Prefix}otorol ayarla <Rol ID>**" to channel with id "%{channel}%" with {@Bot} 
    if {_t} is "ac" or "aç" or "on":
        set {otorolactivated} to true
        make embed:
            set title of embed to title with text "Otomatik Rol"
            set description of embed to "%nl%%nl%:white_check_mark: Otomatik Rol Modu Başarıyla Aktif Edildi.%nl%%nl%"
            set color of embed to green
            set the footer of embed to footer with text "%{user}% Tarafından İstendi."
            set the timestamp of embed to now
        send last created embed to channel with id "%{channel}%" with {@Bot} 
    if {_t} is "kapat" or "off":
        set {otorolactivated} to false
        make embed:
            set title of embed to title with text "Otomatik Rol"
            set description of embed to "%nl%%nl%:x: Otomatik Rol Modu Başarıyla Kapatıldı.%nl%%nl%"
            set color of embed to red
            set the footer of embed to footer with text "%{user}% Tarafından İstendi."
            set the timestamp of embed to now
        send last created embed to channel with id "%{channel}%" with {@Bot}
 
Son düzenleme:
Bunu skript ile yapman güzel olmuş beğendim eline sağlık.
 
Elinize sağlık güzel gözüküyor güzel seri :;p
 
Güzel görünüyor eline sağlık
 
Bilgilendirme olarak yazıyorum. Vixio yeni sürümlerde çalışmıyor ve discorddaki yeni özellikler kullanılamıyor Vixio yerine
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
eklentisini kullanmak daha mantıklı olabilir.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst