Facebook
From ByMayFe, 3 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 266
  1. const Discord = require('discord.js');
  2.  
  3.  
  4.  
  5. const mapping = {
  6.  
  7.     ' ': '   ',
  8.  
  9.     '0': ':zero:',
  10.  
  11.     '1': ':one:',
  12.  
  13.     '2': ':two:',
  14.  
  15.     '3': ':three:',
  16.  
  17.     '4': ':four:',
  18.  
  19.     '5': ':five:',
  20.  
  21.     '6': ':six:',
  22.  
  23.     '7': ':seven:',
  24.  
  25.     '8': ':eight:',
  26.  
  27.     '9': ':nine:',
  28.  
  29.     '!': ':grey_exclamation:',
  30.  
  31.     '?': ':grey_question:',
  32.  
  33.     '#': ':hash:',
  34.  
  35.     '*': ':asterisk:'
  36.  
  37. };
  38.  
  39.  
  40.  
  41. 'abcdefghijklmnopqrstuvwxyz'.split('').forEach(c => {
  42.  
  43.         mapping[c] = mapping[c.toUpperCase()] = `:regional_indicator_${c}:`;
  44.  
  45. });
  46.  
  47.  
  48.  
  49.  
  50.  
  51. exports.run = function(client, message, args) {
  52.  
  53.  
  54.  
  55.         if (args.length < 1) return message.reply('Lütfen bir mesaj belirt. **Doğru Kullanım**: ?emojiyazı <mesaj>')
  56.  
  57.                
  58.  
  59.         message.channel.send(args.join(' ').split('').map(c => mapping[c] || c).join(' '));
  60.  
  61.  
  62.  
  63. };
  64.  
  65.  
  66.  
  67. exports.conf = {
  68.  
  69.   enabled: true,
  70.  
  71.   guildOnly: true,
  72.  
  73.   aliases: [],
  74.  
  75.   permLevel: 0
  76.  
  77. };
  78.  
  79.  
  80.  
  81. exports.help = {
  82.  
  83.   name: 'emojiyazı',
  84.  
  85.   description: 'Mesajınızı emoji haline getirir',
  86.  
  87.   usage: 'emojiyazı <mesaj>'
  88.  
  89. };