- Katılım
- 5 Şubat 2018
- Mesajlar
- 1.072
- Elmaslar
- 620
- Puanlar
- 16.230
- Yaş
- 21
- Minecraft
- Fhalinkz
Selam millet!
Önceki dersimizde size nasıl discord botu kurup, sunucunuza ekleyeceğinizi ve nasıl aktif edeceğinizi öğretmiştim. Şimdiki dersimizde ise discord botuyla cevap vermeyi ve embed oluşturmayı göstereceğim. Eğer konum hoşunuza gittiyse elmas vermeyi unutmayın.
Başlangıç olarak botumuz mesajı görür, mesaj "sa" veya "selamın aleyküm" ise "Aleyküm Selam" yazarak cevap verir. Gayet basit değil mi?
Kod:
on guild message received seen by "MC-TR":
content of event-message is "selamın aleyküm" or "sa":
reply with "Aleyküm selam %event-member%"
Bu da üsttekinin normal mesaj olarak değil komutlu hali
Kod:
discord command mctr!selam:
trigger:
reply with "Aleyküm Selam %event-member%"
Şimdi ise embed oluşturmayı göstereceğim.
Kod:
discord command mctr!tavsiye [<text>]:
trigger:
create embed:
set the title of embed to title with text "%event-member% tarafından tavsiye"
set color of the embed to color from rgb 250, 0, 0
set the descriptions of embed to arg-1
send the last created embed to event-channel with "MC-TR"
delete random message of event-message with event-bot
Bu da daha detaylı bir embed
Kod:
discord command mctr!yapımcı:
trigger:
create embed:
set the title of embed to title with text "MC-TR"
set the description of embed to "Merhaba!"
set the author info of the embed to author named "Yapımcı: Fhalinkz" with no url
set the colour of the embed to Cyan
add split field named "Yapımcının Adı" with value "Bora" to embed
add split field named "Yapımcının Yaşı" with value "16" to embed
add split field named "Yapımcının Discord Adresi" with value "Fhalinkz7532" to embed
add field named "Yapımcı Notu" with value "Merhaba, bu discord botunu sizin için tasarladım." to embed
set the timestamp of embed to now
send the last created embed to event-channel with event-bot
Sıradaki dersimizin konusu ne olsun? Fikirlerinizi yorumlarda belirtmeyi unutmayın.
Ekler
Son düzenleme: