Category : emoji

Here is the code of mine: @client.command() async def emote(ctx, *reaction:list): await ctx.channel.purge(limit=1) if len(reaction) == 0: emotecommandHelp = discord.Embed(title= ‘Help for the Emote command’, description=f'{client.command_prefix}emote (text, no need for space)’) await ctx.send(embed = emotecommandHelp) messagesID = await ctx.channel.history(limit=2).flatten() #earlier===> later messagesID = messagesID[0] message = await ctx.channel.fetch_message(messagesID.id) if len(reaction) != 1: reaction2 = [”.join(x) ..

Read more

im trying to add a role when the user react to this emojis but i cant get Setup Roles @bot.command() async def roles(ctx): global IDMessage reaction = await ctx.reply("Select your Game" + ‘n’ + ‘n’ + "- Valorant 🦸‍♀️" ‘n’ + "- World of Warcraft ⚔" + ‘n’ + "- League of Legends 🧙‍♀️" + ..

Read more

I’m trying to count emoji’s in textlines. These are tweets. I tried different codes, but they all return empty. Eg: emoticons def split_count(text): emoji_counter = 0 data = regex.findall(r’X’, text) for word in data: if any(char in emoji.UNICODE_EMOJI_ENGLISH for char in word): emoji_counter += 1 return emoji_counter split_count_udf = F.udf(split_count, IntegerType()) kick_twitter_count = kick_twitter.withColumn("num_emoji", adv.emoji_counts["full_text"]) ..

Read more

I’m getting a s=0 result when executing this code: import emojis import emoji from collections import Counter #count emoji #function to check if sth is an emoji def char_is_emoji(character): return character in emoji.UNICODE_EMOJI #function to count emoji def emoji_counter(text_string): count = 0 for x in text_string: a = char_is_emoji(x) if a ==True: count+=1 return count ..

Read more

I’m trying to clean some tweets about Harry Potter and I have a problem with emojis: I’d like to replace the emojis with their correspondant text. This is an example from my code: text = ‘PSA 🤩 We’re getting a Hogwarts REUNION 🙌❤️’ text_2 = demoji.findall(text) print(text_2) My output is this: {‘🙌’: ‘raising hands’, ‘❤️’: ..

Read more

I have a csv file (also exists as json if thats easier) with this structure: e.g. id,created_at,text,author_id 1432691762007400458,2021-08-31T13:08:28.000Z,"9月1日㈬は…🎺🎺🎶nn♦️18:50〜 山岸一生n『練馬から変える!国会を創る!キックオフ集会』nhttpstestnn♦️20:30~ 辻元清美n#りっけんチャンネルn「コロナ禍・五輪から見えた""おっさん政治""の実態」についてnhttpsxztnn【テレビ】n♦️19:30~ 玄葉光一郎nBS-TBS「報道1930」",951781409470889984 1432687902148816898,2021-08-31T12:53:08.000Z,やはり別の地平であったか…nnコロナ禍五輪n貴重な物資をなぜ捨てる?,1227501971742937088 I found this: import emoji import regex def split_count(text): emoji_list = [] data = regex.findall(r’X’, text) for word in data: if any(char in emoji.UNICODE_EMOJI[‘en’] for char in word): emoji_list.append(word) return emoji_list however, I ..

Read more