Skip to content

Instantly share code, notes, and snippets.

@phaticusthiccy
Created August 24, 2021 23:14
Show Gist options
  • Save phaticusthiccy/3f708aeedcd36bec4f0605bef671707e to your computer and use it in GitHub Desktop.
Save phaticusthiccy/3f708aeedcd36bec4f0605bef671707e to your computer and use it in GitHub Desktop.
/* Codded by Phaticusthiccy
Mustafa Kemal Atatürk is one of the few commanders
the world has ever seen.
Founder of Republic of Turkey
The world's most exemplary personality.
This man, who spent most of his life in war,
also spent his short life for the Turkish nation.
This name, which gives goosebumps when its name is heard all over the world,
Will always continue to be the largest residence in the whole world.
Thank you for wasting your little life for humanity, for turkish nation, for all kids.
We will never forget you and we will never let you forget!
Rest in peace Word Leader..
*/
const Asena = require('../events');
const{MessageType, Mimetype} = require('@adiwajshing/baileys');
const axios = require('axios')
const config = require('../config');
var msgg = ''
var cpt = ''
if (config.LANG == 'TR' || config.LANG == 'AZ') {
msgg = "Dünya lideri Mustafa Kemal Atatürk'ün Rastgele Fotoğraflarını Gönderir."
cpt = 'Ulu Önder Mustafa Kemal Atatürk Anısına 🖤'
} else {
msgg = "Sends Random Photos of the World Leader Mustafa Kemal Atatürk."
cpt = 'In Memory of The Great Leader Mustafa Kemal Ataturk 🖤'
}
Asena.addCommand({pattern: 'ataturk$', fromMe: true, desc: msgg }, (async (message, match) => {
var data_uri = await axios.get('https://api.emirkabal.com/ataturk')
var payload = data_uri.data.mesaj
var buffer_data = await axios.get(payload, { responseType: 'arraybuffer' })
await message.sendMessage(Buffer.from(buffer_data.data), MessageType.image, { caption: cpt })
}));
@Necmi56
Copy link

Necmi56 commented Jan 6, 2022

.install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment