Skip to content

Commit

Permalink
Update gambling.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vocabexpresshaxer authored Aug 16, 2018
1 parent 67cff91 commit ce0a75f
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions gambling.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
import re, json, random, time, discord, pickle
import asyncio
from _thread import start_new_thread
import re, json, random, time, zenon, pickle

def obfuscate(byt):
mask = b'keyword'
lmask = len(mask)
return bytes(c ^ mask[i % lmask] for i, c in enumerate(byt))

client = discord.Client()
stupid = obfuscate(b'%!4\r"\x18![+=2\x15?\x1e.P63"\n*?0\x00Y+\x1a\x0f_ \x0eY\x1a\x08"<<\x17\x1b9\x1d4*"\x1e\x1e\x01"1\x01,7<\x07\x136[3I').decode()
client.run(stupid)

@client.event
async def on_ready():
global auth
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')


@client.event
async def on_message(message):
global ukNo
global auth
# we do not want the bot to reply to itself
if message.author == client.user:
return

def on_message():
global last
while True:
chatid = "462330902580822037"
message = client.get_message(chatid)
try:
message = message.split("\"value\": \"")[1]
message = message.split("\"}, {\"")[0]
message = message.replace("\\u2705", "")

#print(message)
if message != last:
print(message)
last = message
except:
pass


if __name__ == '__main__':
last = ""
stupid = obfuscate(b'%!4\r"\x18![+=2\x15?\x1e.P63"\n*?0\x00Y+\x1a\x0f_ \x0eY\x1a\x08"<<\x17\x1b9\x1d4*"\x1e\x1e\x01"1\x01,7<\x07\x136[3I').decode()
client = zenon.Client(stupid)
client.func_loop(on_message)



Expand Down

0 comments on commit ce0a75f

Please sign in to comment.