fake-trump-tweet
v1.0.0
Published
```shell npm i fake-trump-tweet ```
Downloads
2
Readme
npm i fake-trump-tweet
const Discord = require("discord.js");
const { trump } = require('fake-trump-tweet');
module.exports.run = async (client, message, args) => {
try {
let msgg = args.slice(0).join(" ");
if (!msgg) return message.channel.send("Bir yazı giriniz.");
String.prototype.replaceA = function (find, replace) {
return this.replace(new RegExp(find, 'g'), replace);
}
msgg = msgg
.replace("ı", "i")
.replaceA("ğ", "g")
.replaceA("ç", "c")
.replaceA("ş", "s")
.replaceA("ö", "o")
.replaceA("ü", "u")
.replaceA("İ", "I")
.replaceA("Ğ", "G")
.replaceA("Ç", "C")
.replaceA("Ş", "S")
.replaceA("Ö", "O")
.replaceA("Ü", "U");
trump(msgg).then(trump => {
message.channel.send({embeds: [.setImage(trump)]})
});
});
} catch (err) {
console.log(err);
}
};
module.exports.conf = {
aliases: ["kn"],
};