Discord Bot Maker

Discord Bot Maker

View Stats:
Can bots display custom emojis
Hello, loving DBM so far but I;ve run into a problem that i wonder if anyone can help me solve.

I have a command that takes text and converts it to another string so something like 'test' would become ':sw_t: :sw_e: :sw_s: :sw_t:' and essentially convert the inputed text into a string of emojis that were also letters. however, when i do this, the bot only displays the text as you see it here ':sw_t: :sw_e: :sw_s: :sw_t:' and not as emojis, while typing the string in does indeed produce emojis.

here is an image of my problem : https://cdn.discordapp.com/attachments/385902552257921046/394601498597785601/Untitled.png

am i doing something wrong, or did i miss something? any help would be greatly appreciated. thanks!
Last edited by Ricky Spanish; Dec 24, 2017 @ 1:26pm
< >
Showing 1-2 of 2 comments
Luna Dec 25, 2017 @ 2:32am 
You need to get the ID of the emoji. Do:
\:emojiname:
And copy the ID you'll get.
Then return to DBM and type
<:ID:>
More help on discord.
Ricky Spanish Dec 26, 2017 @ 11:37am 
thanks! it works

var theMessage = tempVars("message");
var newMessage = "";

var emojis = [];
emojis['a'] = "391312795687190538";
emojis['b'] = "391312796312141824";
emojis['c'] = "391312796496953354";
emojis['d'] = "391312796668788747";
emojis['e'] = "391312799206473729";
emojis['f'] = "391312798824661012";
emojis['g'] = "391312800024100876";
emojis['h'] = "391312800317833229";
emojis['i'] = "391312800250724366";
emojis['j'] = "391312801551089684";
emojis['k'] = "391312801442037761";
emojis['l'] = "391312801525661696";
emojis['m'] = "391312801756610561";
emojis['n'] = "391312802545008650";
emojis['o'] = "391312802452602880";
emojis['p'] = "391312801823457284";
emojis['q'] = "391312802473705472";
emojis['r'] = "391312802427568128";
emojis['s'] = "391312802582757386";
emojis['t'] = "391312802138161154";
emojis['u'] = "391312802427437060";
emojis['v'] = "391312802477899777";
emojis['w'] = "391312802813313024";
emojis['x'] = "391312802817507339";
emojis['y'] = "391312803006513152";
emojis['z'] = "391312802779889682";

for (var i = 0, len = theMessage.length; i < len; i++) {
var theLetter = theMessage.charAt(i);
newMessage = newMessage + "<:sw_" + theLetter + ":" + emojis[theLetter] + "> ";
}



String(newMessage);
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Dec 24, 2017 @ 1:23pm
Posts: 2