Browse Source

It's ogre

master
pfero 6 years ago
parent
commit
0effa0daf4
  1. 74
      bot.py
  2. 16362
      foolsbot.log
  3. 23
      getpins.py
  4. 17
      pin.py
  5. 189
      pinlog.txt
  6. 17
      post.py
  7. 171
      rank.csv
  8. 39
      rank.py
  9. 2
      restoreemoji.py

74
bot.py

@ -17,23 +17,71 @@ def url(str):
return None
def checkext(str):
return splitext(basename(str))[1] in [".png", ".jpg", ".jpeg"]
return splitext(basename(str))[1].lower() in [".png", ".jpg", ".jpeg"]
class Client(discord.Client):
async def on_ready(self):
print("Logged on as", self.user)
self.emoji_lock = Lock()
self.pin_lock = Lock()
self.lastime = None
self.lastime_doors = None
async def on_reaction_remove(self, reaction, user):
message = reaction.message
async def on_message(self, message):
if message.author == self.user:
return
if message.channel.name != "suggestions":
return
if reaction.emoji == "📌":
print("[UNPIN]", ("%s#%s" % (user.name, user.discriminator)) + ":", message.id)
async def on_reaction_add(self, reaction, user):
message = reaction.message
if message.author == self.user:
return
if message.channel.name != "suggestions":
return
if reaction.emoji == "📌":
print("[PIN]", ("%s#%s" % (user.name, user.discriminator)) + ":", message.id)
if reaction.count >= 4:
async with self.pin_lock:
chan_pins = await message.channel.pins()
if len(chan_pins) >= 50:
pins = []
for pin in chan_pins:
for react in pin.reactions:
if react.emoji == "📌":
pins.append((pin, react.count))
pins.sort(key=lambda x: x[1], reverse=True)
await pins[0][0].unpin()
print("[PINNED]", ("%s#%s" % (message.author.name, message.author.discriminator)) + ":", message.id)
await message.pin()
async def on_message(self, message):
if isinstance(message.channel, discord.DMChannel):
print("[DM]", ("%s#%s" % (message.author.name, message.author.discriminator)) + ":", message.content)
return
if message.author == self.user:
return
lowermsg = message.content.lower()
if "doors" in lowermsg or "🚪🚪" in lowermsg:
if not self.lastime_doors or self.lastime + timedelta(minutes=5) < datetime.now():
await message.channel.send("End your fucking life, you worthless piece of shit.")
self.lastime_doors = datetime.now()
if message.channel.name != "suggestions":
return
if "why" in lowermsg and ("happening" in lowermsg or "habbening" in lowermsg):
if not self.lastime or self.lastime + timedelta(hours=1) < datetime.now():
await message.channel.send("https://i.imgur.com/SFRw7aJ.png") # seedot.png
@ -70,6 +118,20 @@ class Client(discord.Client):
image_name = splitext(basename(parsed.path))[0]
image = part
# if image and remove:
# async with self.emoji_lock:
# for emoji in message.guild.emojis:
# if len(message.guild.emojis) <= 35:
# break
# # if emoji.id in remove:
# if emoji.id == remove[0]:
# try:
# print("<DEL EMOJI>", emoji.name + ":", emoji.id)
# await emoji.delete()
# print("[DEL EMOJI]", emoji.name + ":", ("%s#%s" % (message.author.name, message.author.discriminator)) + ":", emoji.id)
# except:
# pass
async with self.emoji_lock:
for emoji in message.guild.emojis:
if len(message.guild.emojis) <= 35:
@ -78,7 +140,7 @@ class Client(discord.Client):
try:
print("<DEL EMOJI>", emoji.name + ":", emoji.id)
await emoji.delete()
print("[DEL EMOJI]", emoji.name + ":", emoji.id)
print("[DEL EMOJI]", emoji.name + ":", ("%s#%s" % (message.author.name, message.author.discriminator)) + ":", emoji.id)
except:
pass
@ -113,16 +175,18 @@ class Client(discord.Client):
try:
print("<DEL EMOJI>", emoji.name + ":", emoji.id)
await emoji.delete()
print("[DEL EMOJI]", emoji.name + ":", emoji.id)
print("[DEL EMOJI]", emoji.name + ":", ("%s#%s" % (message.author.name, message.author.discriminator)) + ":", emoji.id)
except:
pass
print("<NEW EMOJI>", name + ":", image)
ret = await message.guild.create_custom_emoji(name=name, image=image_data)
if not isinstance(ret, int):
print("[NEW EMOJI]", name + ":", image)
print("[NEW EMOJI]", name + ":", ("%s#%s" % (message.author.name, message.author.discriminator)) + ":", image)
else:
time = "%d minutes and %d seconds" % (ret / 1000 / 60, ret / 1000 % 60)
if ret > 60 * 60 * 1000:
time = "%d hours, %d minutes and %d seconds" % (ret / 1000 / 60 / 60, ret / 1000 / 60 % 60, ret / 1000 % 60)
print("[RATE LIMIT] Wait", time)
await message.channel.send("We're being rate limited by discord for %s 😔" % time)
except:

16362
foolsbot.log

File diff suppressed because it is too large

23
getpins.py

@ -0,0 +1,23 @@
import discord
from os import listdir
class Client(discord.Client):
async def on_ready(self):
print("Logged on as", self.user)
channel = self.get_channel(373273190547324928)
pins = await channel.pins()
for msg in pins:
msg = await channel.fetch_message(msg.id)
for react in msg.reactions:
if react.emoji == "📌":
print("[PINNED]", ("%s#%s" % (msg.author.name, msg.author.discriminator)) + ":", msg.id)
async for user in react.users():
print("[PIN]", ("%s#%s" % (user.name, user.discriminator)) + ":", msg.id)
await self.logout()
client = Client()
client.run(open("token").read().strip())

17
pin.py

@ -0,0 +1,17 @@
import discord
from os import listdir
class Client(discord.Client):
async def on_ready(self):
print("Logged on as", self.user)
channel = self.get_channel(373273190547324928)
message = await channel.fetch_message(562295275184455720)
# await message.pin()
await message.add_reaction("📌")
await self.logout()
client = Client()
client.run(open("token").read().strip())

189
pinlog.txt

@ -0,0 +1,189 @@
Logged on as *Ben Shapiro#5265
[PINNED] Alonso#1219: 562271177473523714
[PIN] Alonso#1219: 562271177473523714
[PIN] coraldev#2976: 562271177473523714
[PIN] Nuuk#3967: 562271177473523714
[PIN] Kahn#5271: 562271177473523714
[PINNED] fonnymunkey#4059: 562232731501854740
[PIN] Claire ♡#0346: 562232731501854740
[PIN] fonnymunkey#4059: 562232731501854740
[PIN] Kahn#5271: 562232731501854740
[PIN] Schultz™#8592: 562232731501854740
[PINNED] fonnymunkey#4059: 562231075724591144
[PIN] Alonso#1219: 562231075724591144
[PIN] fonnymunkey#4059: 562231075724591144
[PIN] Kahn#5271: 562231075724591144
[PIN] Schultz™#8592: 562231075724591144
[PINNED] Mawile#9390: 562229348418191360
[PIN] Alonso#1219: 562229348418191360
[PIN] Mawile#9390: 562229348418191360
[PIN] StarMagician#5358: 562229348418191360
[PIN] Schultz™#8592: 562229348418191360
[PINNED] Alonso#1219: 562226775669735455
[PIN] Alonso#1219: 562226775669735455
[PIN] Mawile#9390: 562226775669735455
[PIN] Kahn#5271: 562226775669735455
[PIN] Schultz™#8592: 562226775669735455
[PINNED] Kahn#5271: 562218967318528030
[PIN] fonnymunkey#4059: 562218967318528030
[PIN] Tommo#7032: 562218967318528030
[PIN] Kahn#5271: 562218967318528030
[PIN] Schultz™#8592: 562218967318528030
[PINNED] TC's Ghost#0675: 562218478669529110
[PIN] Alonso#1219: 562218478669529110
[PIN] fonnymunkey#4059: 562218478669529110
[PIN] Mawile#9390: 562218478669529110
[PIN] StarMagician#5358: 562218478669529110
[PIN] Tommo#7032: 562218478669529110
[PIN] BreadCrumbs#1708: 562218478669529110
[PIN] sex man#4887: 562218478669529110
[PIN] Kahn#5271: 562218478669529110
[PIN] Schultz™#8592: 562218478669529110
[PINNED] StarMagician#5358: 562218387820904450
[PIN] Alonso#1219: 562218387820904450
[PIN] fonnymunkey#4059: 562218387820904450
[PIN] Mawile#9390: 562218387820904450
[PIN] StarMagician#5358: 562218387820904450
[PIN] Tommo#7032: 562218387820904450
[PINNED] StarMagician#5358: 562216035420209170
[PIN] Alonso#1219: 562216035420209170
[PIN] fonnymunkey#4059: 562216035420209170
[PIN] StarMagician#5358: 562216035420209170
[PIN] Kahn#5271: 562216035420209170
[PINNED] fonnymunkey#4059: 562215671577182221
[PIN] Alonso#1219: 562215671577182221
[PIN] fonnymunkey#4059: 562215671577182221
[PIN] StarMagician#5358: 562215671577182221
[PIN] Kahn#5271: 562215671577182221
[PINNED] Kahn#5271: 562213396129513485
[PIN] fonnymunkey#4059: 562213396129513485
[PIN] StarMagician#5358: 562213396129513485
[PIN] Kahn#5271: 562213396129513485
[PINNED] StarMagician#5358: 562200042447044639
[PIN] Alonso#1219: 562200042447044639
[PIN] StarMagician#5358: 562200042447044639
[PIN] Tommo#7032: 562200042447044639
[PIN] Kahn#5271: 562200042447044639
[PIN] Schultz™#8592: 562200042447044639
[PINNED] Ghost#9283: 562199574450798592
[PIN] Ghost#9283: 562199574450798592
[PIN] StarMagician#5358: 562199574450798592
[PIN] Kahn#5271: 562199574450798592
[PIN] Schultz™#8592: 562199574450798592
[PINNED] Alonso#1219: 562199389687382026
[PIN] fonnymunkey#4059: 562199389687382026
[PIN] StarMagician#5358: 562199389687382026
[PIN] Kahn#5271: 562199389687382026
[PINNED] Tommo#7032: 562197060225597442
[PIN] StarMagician#5358: 562197060225597442
[PIN] Tommo#7032: 562197060225597442
[PIN] sex man#4887: 562197060225597442
[PIN] Kahn#5271: 562197060225597442
[PIN] Schultz™#8592: 562197060225597442
[PINNED] sex man#4887: 562196874883497997
[PIN] Alonso#1219: 562196874883497997
[PIN] fonnymunkey#4059: 562196874883497997
[PIN] StarMagician#5358: 562196874883497997
[PIN] Tommo#7032: 562196874883497997
[PIN] sex man#4887: 562196874883497997
[PIN] Schultz™#8592: 562196874883497997
[PINNED] fonnymunkey#4059: 562196736844496897
[PIN] razedtomidnight#2272: 562196736844496897
[PIN] Alonso#1219: 562196736844496897
[PIN] fonnymunkey#4059: 562196736844496897
[PIN] Tommo#7032: 562196736844496897
[PIN] sex man#4887: 562196736844496897
[PIN] aaaa#6941: 562196736844496897
[PIN] Kahn#5271: 562196736844496897
[PIN] Schultz™#8592: 562196736844496897
[PINNED] Alonso#1219: 562196617940172808
[PIN] StarMagician#5358: 562196617940172808
[PIN] Tommo#7032: 562196617940172808
[PIN] Kahn#5271: 562196617940172808
[PIN] Schultz™#8592: 562196617940172808
[PINNED] fonnymunkey#4059: 562196498352177153
[PIN] fonnymunkey#4059: 562196498352177153
[PIN] sex man#4887: 562196498352177153
[PIN] Kahn#5271: 562196498352177153
[PIN] Schultz™#8592: 562196498352177153
[PINNED] StarMagician#5358: 562196396648955926
[PIN] razedtomidnight#2272: 562196396648955926
[PIN] Alonso#1219: 562196396648955926
[PIN] fonnymunkey#4059: 562196396648955926
[PIN] StarMagician#5358: 562196396648955926
[PIN] sex man#4887: 562196396648955926
[PIN] Kahn#5271: 562196396648955926
[PIN] Schultz™#8592: 562196396648955926
[PINNED] sex man#4887: 562196105903865856
[PIN] Ghost#9283: 562196105903865856
[PIN] sex man#4887: 562196105903865856
[PIN] Kahn#5271: 562196105903865856
[PIN] Schultz™#8592: 562196105903865856
[PINNED] fonnymunkey#4059: 562196005894881283
[PIN] fonnymunkey#4059: 562196005894881283
[PIN] Schultz™#8592: 562196005894881283
[PINNED] Mawile#9390: 562195983526526977
[PIN] Ghost#9283: 562195983526526977
[PIN] sex man#4887: 562195983526526977
[PIN] Kahn#5271: 562195983526526977
[PINNED] StarMagician#5358: 562195878425788426
[PIN] Alonso#1219: 562195878425788426
[PIN] fonnymunkey#4059: 562195878425788426
[PIN] sex man#4887: 562195878425788426
[PIN] Kahn#5271: 562195878425788426
[PIN] Schultz™#8592: 562195878425788426
[PINNED] Alonso#1219: 562195704148393985
[PIN] fonnymunkey#4059: 562195704148393985
[PIN] StarMagician#5358: 562195704148393985
[PIN] Kahn#5271: 562195704148393985
[PIN] Schultz™#8592: 562195704148393985
[PINNED] sex man#4887: 562195740642902028
[PIN] Alonso#1219: 562195740642902028
[PIN] Ghost#9283: 562195740642902028
[PIN] fonnymunkey#4059: 562195740642902028
[PIN] StarMagician#5358: 562195740642902028
[PIN] Tommo#7032: 562195740642902028
[PIN] sex man#4887: 562195740642902028
[PIN] Kahn#5271: 562195740642902028
[PIN] Schultz™#8592: 562195740642902028
[PINNED] fonnymunkey#4059: 562195399193001988
[PIN] Alonso#1219: 562195399193001988
[PIN] Ghost#9283: 562195399193001988
[PIN] fonnymunkey#4059: 562195399193001988
[PIN] Kahn#5271: 562195399193001988
[PINNED] Kahn#5271: 562195552486293514
[PIN] Alonso#1219: 562195552486293514
[PIN] fonnymunkey#4059: 562195552486293514
[PIN] Mawile#9390: 562195552486293514
[PIN] sex man#4887: 562195552486293514
[PIN] Kahn#5271: 562195552486293514
[PIN] Schultz™#8592: 562195552486293514
[PINNED] sex man#4887: 562195369476489216
[PIN] Alonso#1219: 562195369476489216
[PIN] Ghost#9283: 562195369476489216
[PIN] StarMagician#5358: 562195369476489216
[PIN] sex man#4887: 562195369476489216
[PINNED] Alonso#1219: 562195241604481045
[PIN] Ghost#9283: 562195241604481045
[PIN] fonnymunkey#4059: 562195241604481045
[PIN] Kahn#5271: 562195241604481045
[PIN] Schultz™#8592: 562195241604481045
[PINNED] fonnymunkey#4059: 562195108922130444
[PIN] Alonso#1219: 562195108922130444
[PIN] Ghost#9283: 562195108922130444
[PIN] fonnymunkey#4059: 562195108922130444
[PIN] Kahn#5271: 562195108922130444
[PINNED] StarMagician#5358: 562194918613843969
[PIN] Alonso#1219: 562194918613843969
[PIN] Ghost#9283: 562194918613843969
[PIN] fonnymunkey#4059: 562194918613843969
[PIN] StarMagician#5358: 562194918613843969
[PIN] sex man#4887: 562194918613843969
[PINNED] StarMagician#5358: 562194662471761930
[PIN] Ghost#9283: 562194662471761930
[PIN] Schultz™#8592: 562194662471761930
[PINNED] fonnymunkey#4059: 562187072497123328
[PIN] Alonso#1219: 562187072497123328
[PIN] StarMagician#5358: 562187072497123328
[PIN] Tommo#7032: 562187072497123328
[PIN] goodboy98#9709: 562187072497123328

17
post.py

@ -0,0 +1,17 @@
import discord
from os import listdir
class Client(discord.Client):
async def on_ready(self):
print("Logged on as", self.user)
# file = discord.File(open("shapiro.png", "rb"), filename="shapiro.png")
channel = self.get_channel(256684714180608001)
# await channel.send(file=file)
await self.logout()
client = Client()
client.run(open("token").read().strip())

171
rank.csv

@ -0,0 +1,171 @@
User,Added,Removed
StarMagician#5358,143,111
sex man#4887,110,95
Mawile#9390,92,62
Alonso#1219,38,68
fonnymunkey#4059,18,68
Kahn#5271,46,22
Ghost#9283,16,4
Tommo#7032,8,7
𝕯𝖊𝖘𝖎𝖌𝖓𝖆𝖙𝖊𝖉 𝕯𝖆𝖇𝖇𝖊𝖗#8803,1,14
Malicart#5072,0,15
CCCP#6041,0,14
Schultz™#8592,6,3
Nuuk#3967,5,3
coraldev#2976,4,3
pfero#4624,4,2
BreadCrumbs#1708,3,2
cowardly monoliths#2784,1,3
luckytyphlosion#1166,2,1
Bum#3019,1,1
gmerc#1356,0,2
razedtomidnight#2272,0,1
Angrybird#9048,0,1
Jttyzzle#2690,0,1
,,
Emoji,Added,Removed
490971460932993042,99,99
pigga,49,49
mehrio,26,26
shapiro,24,24
unknown,19,19
fug,16,17
562228601336889345,15,15
exhausted,14,13
FUCKINGSOMETHING,12,12
FUCKINGNOTHING,11,11
megafug,11,11
Kokana,11,10
groudon,10,10
562243833954435072,16,4
kyogre,7,7
vroom,7,7
mmmm,6,6
dab,4,5
lilfella,4,5
hope,4,4
mmminreallife,4,4
mmmmmmmmmmmmmm,4,4
mmmmmmmmmmmmmmmmmmmm,4,4
sip,3,4
350459505017880578,3,3
nyandab,3,3
mmmirl,3,3
mmmmmmm,3,3
boomer,3,3
crangry,2,3
pika,2,3
will,2,3
ciASS,3,2
mmmmmmmmmmmm,2,2
Capture,2,2
doomer,2,2
SOY,2,2
npc,2,2
seething,2,2
545406229799763980,2,2
morphon3d,2,2
KANTOOO,2,1
tentaquil,1,2
woop,1,2
stroke,1,2
pleaseplaylegit,1,2
ahem,2,1
mmmm_kopia_2,2,1
pever,1,1
nyanthink,1,1
exhuasted,1,1
kantoooooooooooooooooooo,1,1
morphon,1,1
exh,1,1
A_FUCKING_WOJAK,1,1
1487215411536s,1,1
catt,1,1
fucker,1,1
1554102757911,1,1
zooweemama,1,1
handsome,1,1
1511722924578,1,1
retart2,1,1
FB_IMG_1529044218475,1,1
FUG,1,1
D3BQKldU4AI8bDk,1,1
human_turducken_0,1,1
bruhbos,1,1
1536535829358,1,1
DAMAGED,1,1
nice,1,1
rizbiz_0,1,1
REEEEEEE,1,1
1540312324681,1,1
1362734185889,1,1
SNAP,1,1
kokana,1,1
ralsei,1,1
mmmsfacewhen,1,1
mmmmmmmmmmmmmmmmmmm,1,1
e6562ff1d9,1,1
mmmmmmmmmmmmmmmmmmmmmmmmmmmm,1,1
mmmmmmmm,1,1
mmmmmmmmmmmmmmm,1,1
mmmmmmmmmmmmmmmm,1,1
mmmm_kopia_2_kopia,1,1
crying_goat,1,1
1554129842140,1,1
562121143356620812,1,1
83,1,1
455870213137629234,1,1
561932961327611904,1,1
whygod,1,1
MAD,1,1
kylofist,1,1
checked,1,1
comfyhd,1,1
58848EE93C0E4F0AB3A9A2C3764E5C98,1,1
pat,1,1
angery,0,1
dontdothat,0,1
whip,0,1
you,0,1
ya_looked,0,1
blobbos,0,1
pikashock,0,1
morphclown,0,1
mariothink,0,1
kms,0,1
kek,0,1
blobsweat,0,1
thonk,0,1
tip,0,1
haha,0,1
smug_selene,0,1
roothoot,0,1
pacha,0,1
masuda,0,1
Ditto,0,1
lucas,0,1
daily_dose,0,1
comfy,0,1
emome,0,1
emode,0,1
retart,0,1
cringe,0,1
morphoff,0,1
owo,0,1
SFRw7aJ,1,0
angrypepe,1,0
cryingwojak,1,0
newzealandpepe,1,0
pepe,1,0
smugpepe,1,0
smugwojak,1,0
wojak,1,0
wojak2,1,0
1550031950072,1,0
1552310842768,1,0
1486926235119,1,0
file,1,0
55549D1CDB3D402B96A8FCA5C70DB824,1,0
le_epic_pig_dab,1,0
C8EE21EAE04D4EC0ACF2EDCBF3362ABE,1,0
shitposting,1,0
1 User Added Removed
2 StarMagician#5358 143 111
3 sex man#4887 110 95
4 Mawile#9390 92 62
5 Alonso#1219 38 68
6 fonnymunkey#4059 18 68
7 Kahn#5271 46 22
8 Ghost#9283 16 4
9 Tommo#7032 8 7
10 𝕯𝖊𝖘𝖎𝖌𝖓𝖆𝖙𝖊𝖉 𝕯𝖆𝖇𝖇𝖊𝖗#8803 1 14
11 Malicart#5072 0 15
12 CCCP#6041 0 14
13 Schultz™#8592 6 3
14 Nuuk#3967 5 3
15 coraldev#2976 4 3
16 pfero#4624 4 2
17 BreadCrumbs#1708 3 2
18 cowardly monoliths#2784 1 3
19 luckytyphlosion#1166 2 1
20 Bum#3019 1 1
21 gmerc#1356 0 2
22 razedtomidnight#2272 0 1
23 Angrybird#9048 0 1
24 Jttyzzle#2690 0 1
25
26 Emoji Added Removed
27 490971460932993042 99 99
28 pigga 49 49
29 mehrio 26 26
30 shapiro 24 24
31 unknown 19 19
32 fug 16 17
33 562228601336889345 15 15
34 exhausted 14 13
35 FUCKINGSOMETHING 12 12
36 FUCKINGNOTHING 11 11
37 megafug 11 11
38 Kokana 11 10
39 groudon 10 10
40 562243833954435072 16 4
41 kyogre 7 7
42 vroom 7 7
43 mmmm 6 6
44 dab 4 5
45 lilfella 4 5
46 hope 4 4
47 mmminreallife 4 4
48 mmmmmmmmmmmmmm 4 4
49 mmmmmmmmmmmmmmmmmmmm 4 4
50 sip 3 4
51 350459505017880578 3 3
52 nyandab 3 3
53 mmmirl 3 3
54 mmmmmmm 3 3
55 boomer 3 3
56 crangry 2 3
57 pika 2 3
58 will 2 3
59 ciASS 3 2
60 mmmmmmmmmmmm 2 2
61 Capture 2 2
62 doomer 2 2
63 SOY 2 2
64 npc 2 2
65 seething 2 2
66 545406229799763980 2 2
67 morphon3d 2 2
68 KANTOOO 2 1
69 tentaquil 1 2
70 woop 1 2
71 stroke 1 2
72 pleaseplaylegit 1 2
73 ahem 2 1
74 mmmm_kopia_2 2 1
75 pever 1 1
76 nyanthink 1 1
77 exhuasted 1 1
78 kantoooooooooooooooooooo 1 1
79 morphon 1 1
80 exh 1 1
81 A_FUCKING_WOJAK 1 1
82 1487215411536s 1 1
83 catt 1 1
84 fucker 1 1
85 1554102757911 1 1
86 zooweemama 1 1
87 handsome 1 1
88 1511722924578 1 1
89 retart2 1 1
90 FB_IMG_1529044218475 1 1
91 FUG 1 1
92 D3BQKldU4AI8bDk 1 1
93 human_turducken_0 1 1
94 bruhbos 1 1
95 1536535829358 1 1
96 DAMAGED 1 1
97 nice 1 1
98 rizbiz_0 1 1
99 REEEEEEE 1 1
100 1540312324681 1 1
101 1362734185889 1 1
102 SNAP 1 1
103 kokana 1 1
104 ralsei 1 1
105 mmmsfacewhen 1 1
106 mmmmmmmmmmmmmmmmmmm 1 1
107 e6562ff1d9 1 1
108 mmmmmmmmmmmmmmmmmmmmmmmmmmmm 1 1
109 mmmmmmmm 1 1
110 mmmmmmmmmmmmmmm 1 1
111 mmmmmmmmmmmmmmmm 1 1
112 mmmm_kopia_2_kopia 1 1
113 crying_goat 1 1
114 1554129842140 1 1
115 562121143356620812 1 1
116 83 1 1
117 455870213137629234 1 1
118 561932961327611904 1 1
119 whygod 1 1
120 MAD 1 1
121 kylofist 1 1
122 checked 1 1
123 comfyhd 1 1
124 58848EE93C0E4F0AB3A9A2C3764E5C98 1 1
125 pat 1 1
126 angery 0 1
127 dontdothat 0 1
128 whip 0 1
129 you 0 1
130 ya_looked 0 1
131 blobbos 0 1
132 pikashock 0 1
133 morphclown 0 1
134 mariothink 0 1
135 kms 0 1
136 kek 0 1
137 blobsweat 0 1
138 thonk 0 1
139 tip 0 1
140 haha 0 1
141 smug_selene 0 1
142 roothoot 0 1
143 pacha 0 1
144 masuda 0 1
145 Ditto 0 1
146 lucas 0 1
147 daily_dose 0 1
148 comfy 0 1
149 emome 0 1
150 emode 0 1
151 retart 0 1
152 cringe 0 1
153 morphoff 0 1
154 owo 0 1
155 SFRw7aJ 1 0
156 angrypepe 1 0
157 cryingwojak 1 0
158 newzealandpepe 1 0
159 pepe 1 0
160 smugpepe 1 0
161 smugwojak 1 0
162 wojak 1 0
163 wojak2 1 0
164 1550031950072 1 0
165 1552310842768 1 0
166 1486926235119 1 0
167 file 1 0
168 55549D1CDB3D402B96A8FCA5C70DB824 1 0
169 le_epic_pig_dab 1 0
170 C8EE21EAE04D4EC0ACF2EDCBF3362ABE 1 0
171 shitposting 1 0

39
rank.py

@ -0,0 +1,39 @@
#!/usr/bin/env python3
users = {}
emojis = {}
for line in open("foolsbot.log"):
if line.startswith("[NEW EMOJI]"):
emoji = line.split(":")[0].split(" ")[2].strip()
if emoji not in emojis:
emojis[emoji] = [0, 0]
emojis[emoji][0] += 1
user = line.split(":")[1].strip()
if not user in users:
users[user] = [0, 0]
users[user][0] += 1
if line.startswith("[DEL EMOJI]"):
emoji = line.split(":")[0].split(" ")[2].strip()
if emoji not in emojis:
emojis[emoji] = [0, 0]
emojis[emoji][1] += 1
user = line.split(":")[1].strip()
if not user in users:
users[user] = [0, 0]
users[user][1] += 1
lusers = sorted(users.items(), key=lambda k: k[1][0] + k[1][1], reverse=True)
lemojis = sorted(emojis.items(), key=lambda k: k[1][0] + k[1][1], reverse=True)
print("User,Added,Removed")
for luser in lusers:
print("%s,%s,%s" % (luser[0], luser[1][0], luser[1][1]))
print(",,")
print("Emoji,Added,Removed")
for lemoji in lemojis:
print("%s,%s,%s" % (lemoji[0], lemoji[1][0], lemoji[1][1]))

2
restoreemoji.py

@ -13,6 +13,8 @@ class Client(discord.Client):
for image in listdir("emoji"):
print(image.split(".")[0])
if not image.split(".")[0]:
continue
await guild.create_custom_emoji(name=image.split(".")[0], image=open("emoji/" + image, "rb").read())
await self.logout()

Loading…
Cancel
Save