Reynixan
Le cose belle arrivano quando non le cerchi.
- Katılım
- 22 Ocak 2020
- Mesajlar
- 631
- Elmaslar
- 715
- Puan
- 8.175
- Yaş
- 23
- Konum
- Istanbul
Discord:
Reynixan#8044
Ön Söz
Selamlar değerli forum sakinleri.
Ne kadar lazım bilemem ama eğlence için iş göreceğini düşünüyorum.
Yazdığınız bir komutla kelime oyunu başlatılıyor ve kodu ilk yazan kazanıyor.
Kod, her harf arasında bir boşluk olacak şekilde veriliyor. Kazanmak için kodu boşluksuz yazmak gerekiyor.
Boşluk olmasının sebebi kopyalanmasını engellemektir.
Süre, sıralama ve oynanma sayısı gibi özellikler mevcuttur.
Gerekli Addon:
Değerli ziyaretçimiz, içeriği görebilmek için
şimdi giriş yapın veya kayıt olun.
Görseller
Geri sayım yapılıyor.
Geri sayım bittikten sonra ilk yazan kazanır.
Sıralama...
Kod
Kod:
options:
token: ""
bot: "BotName"
botName: BotName
discord command m!oyun:
trigger:
if event-member has permission manage server:
delete event-message
add 1 to {oyunsayi}
set {oyunkanal} to discord id of event-channel
reply with "Kelime Oyunu Başlıyor! Az sonra verilecek olan kodu boşluksuz şekilde ilk doğru yazan kazanır!"
wait 3 second
reply with "Geri sayım başlıyor!" and store it in {_msg}
wait 3 second
edit {_msg} to show ":three:"
wait 1 second
edit {_msg} to show ":two:"
wait 1 second
edit {_msg} to show ":one:"
wait 1 second
edit {_msg} to show ":zero:"
wait 1 second
edit {_msg} to show "Geri sayım yapıldı, kod veriliyor!"
wait 2 second
set {oyunkod} to random string matching "[A-Za-z0-9]{10}"
set {_x::*} to {oyunkod} split at ""
set {_x} to "%{_x::*}%"
replace "," with "" in {_x}
replace " and" with "" in {_x}
set {zaman} to now
reply with "**``%{_x}%``**"
else:
reply with ":x: Yetersiz yetki!"
on message received:
if discord id of event-channel is {oyunkanal}:
if {oyunkod} is equal to "%event-message%":
delete {oyunkod}
set {_x} to "%difference between now and {zaman}%"
replace "seconds" with "saniyede" in {_x}
replace "minutes" with "dakika" in {_x}
replace "minute" with "dakika" in {_x}
replace " and" with "" in {_x}
add reaction "star" to event-message with event-bot
reply with ":tada: **%event-member%** kelime oyununu ``%{_x}%`` kazandı! (%mention tag of event-member%)"
if {oyunkazanma::%discord id of event-member%} is not set:
set {oyunkazanma::%discord id of event-member%} to 0
add 1 to {oyunkazanma::%discord id of event-member%}
discord command m!top:
trigger:#reynixan
loop {oyunkazanma::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
set {_result} to 0
loop {_high.to.low.list::*}:
add 1 to {_result}
set {_x} to discord name of user with id "%loop-value%"
set {_y} to discriminator of user with id "%loop-value%"
set {_z} to {oyunkazanma::%loop-value%}
set {top::%{_result}%} to "%{_x}%##%{_y}%: **``%{_z}%``**"
if {_result} is 3:
stop loop
make embed:
set color of the embed to color from rgb 173, 255, 47
set author info of embed to an author named "%discord name of event-guild%" with no url
set the footer of embed to footer with text "%event-member% tarafından istendi." and icon "%avatar of event-member%"
add field named ":fire: __Kelime Oyunu İlk 3__" with value "Toplam ``%{oyunsayi}%`` kez oynandı." to embed
add field named "" with value ":small_blue_diamond: 1.%{top::1}%" to embed
add field named "" with value ":small_blue_diamond: 2.%{top::2}%" to embed
add field named "" with value ":small_blue_diamond: 3.%{top::3}%" to embed
add field named "" with value "" to embed
set the thumbnail of embed to "%avatar of event-bot%"
send the last created embed to event-channel with event-bot
on load:
if {@bot} parsed as bot is not set:
login to {@token} with name {@bot}
set status of {@bot} to do not disturb
on unload:
set status of {@bot} to do not disturb
Kod:
options:
token: ""
bot: "BotName"
botName: BotName
on load:
delete {characters::*}
add ":regional_indicator_a:" to {characters::*}
add ":regional_indicator_b:" to {characters::*}
add ":regional_indicator_c:" to {characters::*}
add ":regional_indicator_d:" to {characters::*}
add ":regional_indicator_e:" to {characters::*}
add ":regional_indicator_f:" to {characters::*}
add ":regional_indicator_g:" to {characters::*}
add ":regional_indicator_h:" to {characters::*}
add ":regional_indicator_i:" to {characters::*}
add ":regional_indicator_j:" to {characters::*}
add ":regional_indicator_k:" to {characters::*}
add ":regional_indicator_l:" to {characters::*}
add ":regional_indicator_m:" to {characters::*}
add ":regional_indicator_n:" to {characters::*}
add ":regional_indicator_o:" to {characters::*}
add ":regional_indicator_p:" to {characters::*}
add ":regional_indicator_q:" to {characters::*}
add ":regional_indicator_r:" to {characters::*}
add ":regional_indicator_s:" to {characters::*}
add ":regional_indicator_t:" to {characters::*}
add ":regional_indicator_u:" to {characters::*}
add ":regional_indicator_v:" to {characters::*}
add ":regional_indicator_w:" to {characters::*}
add ":regional_indicator_x:" to {characters::*}
add ":regional_indicator_y:" to {characters::*}
add ":regional_indicator_z:" to {characters::*}
add ":one:" to {characters::*}
add ":two:" to {characters::*}
add ":three:" to {characters::*}
add ":four:" to {characters::*}
add ":five:" to {characters::*}
add ":six:" to {characters::*}
add ":seven:" to {characters::*}
add ":eight:" to {characters::*}
add ":nine:" to {characters::*}
add ":zero:" to {characters::*}
discord command m!oyun:
trigger:
if event-member has permission manage server:
delete event-message
add 1 to {oyunsayi}
set {oyunkanal} to discord id of event-channel
reply with "Kelime Oyunu Başlıyor! Az sonra verilecek olan kodu boşluksuz şekilde ilk doğru yazan kazanır!"
wait 3 second
reply with "Geri sayım başlıyor!" and store it in {_msg}
wait 3 second
edit {_msg} to show ":three:"
wait 1 second
edit {_msg} to show ":two:"
wait 1 second
edit {_msg} to show ":one:"
wait 1 second
edit {_msg} to show ":zero:"
wait 1 second
edit {_msg} to show "Geri sayım yapıldı, kod veriliyor!"
wait 2 second
set {_y} to ""
loop 10 times:
set {_x} to random element out of {characters::*}
set {_y} to "%{_y}%%{_x}%"
set {oyunkod} to {_y}
replace ":" with "" in {oyunkod}
replace "regional_indicator" with "" in {oyunkod}
replace "one" with "1" in {oyunkod}
replace "two" with "2" in {oyunkod}
replace "three" with "3" in {oyunkod}
replace "four" with "4" in {oyunkod}
replace "five" with "5" in {oyunkod}
replace "six" with "6" in {oyunkod}
replace "seven" with "7" in {oyunkod}
replace "eight" with "8" in {oyunkod}
replace "nine" with "9" in {oyunkod}
replace "zero" with "0" in {oyunkod}
replace "_" with "" in {oyunkod}
reply with {_y}
set {zaman} to now
else:
reply with ":x: Yetersiz yetki!"
on message received:
if discord id of event-channel is {oyunkanal}:
if {oyunkod} is equal to "%event-message%":
delete {oyunkod}
set {_x} to "%difference between now and {zaman}%"
replace "seconds" with "saniyede" in {_x}
replace "minutes" with "dakika" in {_x}
replace "minute" with "dakika" in {_x}
replace " and" with "" in {_x}
add reaction "star" to event-message with event-bot
reply with ":tada: **%event-member%** kelime oyununu ``%{_x}%`` kazandı! (%mention tag of event-member%)"
if {oyunkazanma::%discord id of event-member%} is not set:
set {oyunkazanma::%discord id of event-member%} to 0
add 1 to {oyunkazanma::%discord id of event-member%}
discord command m!top:
trigger:#reynixan
loop {oyunkazanma::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
set {_result} to 0
loop {_high.to.low.list::*}:
add 1 to {_result}
set {_x} to discord name of user with id "%loop-value%"
set {_y} to discriminator of user with id "%loop-value%"
set {_z} to {oyunkazanma::%loop-value%}
set {top::%{_result}%} to "%{_x}%##%{_y}%: **``%{_z}%``**"
if {_result} is 3:
stop loop
make embed:
set color of the embed to color from rgb 173, 255, 47
set author info of embed to an author named "%discord name of event-guild%" with no url
set the footer of embed to footer with text "%event-member% tarafından istendi." and icon "%avatar of event-member%"
add field named ":fire: __Kelime Oyunu İlk 3__" with value "Toplam ``%{oyunsayi}%`` kez oynandı." to embed
add field named "" with value ":small_blue_diamond: 1.%{top::1}%" to embed
add field named "" with value ":small_blue_diamond: 2.%{top::2}%" to embed
add field named "" with value ":small_blue_diamond: 3.%{top::3}%" to embed
add field named "" with value "" to embed
set the thumbnail of embed to "%avatar of event-bot%"
send the last created embed to event-channel with event-bot
on load:
if {@bot} parsed as bot is not set:
login to {@token} with name {@bot}
set status of {@bot} to do not disturb
on unload:
set status of {@bot} to do not disturb
Token kısmını doldurmayı unutmayın.
Umarım işinize yarar.
Hoşçakalın, görüşmek üzere...
Son düzenleme: