Last active
August 22, 2020 19:42
-
-
Save GeorgeShao/460953c7de118156c77db53f6a1e1e14 to your computer and use it in GitHub Desktop.
TatsumakiFishySpam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import asyncio | |
import time | |
try: | |
import discord | |
except: | |
from tkinter import messagebox | |
import tkinter | |
root = tkinter.Tk() | |
root.withdraw() | |
messagebox.showerror("Error", "Please install discord with 'sudo pip install discord'") | |
os._exit(1) | |
try: | |
from pyautogui import confirm, prompt, alert, password | |
except: | |
from tkinter import messagebox | |
import tkinter | |
root = tkinter.Tk() | |
root.withdraw() | |
messagebox.showerror("Error", "Please install pyautogui with 'sudo pip install pyautogui'") | |
os._exit(1) | |
text_to_send = '' | |
my_password = '' | |
def choose_word(): | |
global text_to_send | |
try: | |
text_to_send = prompt(text='Choose Text To Send', title='DiscordAutoReply').lower() | |
except AttributeError: | |
os._exit(1) | |
choose_word() | |
client = discord.Client() | |
channel = client.get_channel(652707386536230932) | |
sleeptime = 2 | |
keep_going = True | |
@client.event | |
async def on_message(message): | |
global sleeptime | |
global keep_going | |
print(message.author.id, message.content) | |
if message.author.id == 172002275412279296 and keep_going == True and ("**you caught:" in message.content): | |
print("AUTOREPLY QUEUED -", message.author.id, message.content) | |
time.sleep(30) | |
await message.channel.send(text_to_send) | |
print("AUTOREPLY COMPLETE") | |
await asyncio.sleep(sleeptime) | |
if message.author.id == 382738424974671873 and message.content in ['!exit', 'yay fishy']: | |
print("EXIT QUEUED") | |
await client.close() | |
print("EXIT COMPLETE") | |
if message.author.id == 382738424974671873 and message.content == ('!pause'): | |
print("PAUSE QUEUED") | |
keep_going = False | |
print("PAUSE COMPLETE") | |
if message.author.id == 382738424974671873 and message.content == ('!restart'): | |
print("RESTART QUEUED") | |
keep_going = False | |
choose_word() | |
keep_going = True | |
print("RESTART COMPLETE") | |
if confirm(text='Choose Login Method. (Token Login Recommended)', title='DiscordAutoReply', buttons=['TOKEN', 'PASSWORD']) == 'PASSWORD': | |
discord_email = prompt(text='Enter Your Email', title='DiscordAutoReply') | |
read_password = password(text='Enter Your Password', title='DiscordAutoReply') | |
try: | |
client.run(discord_email,read_password) | |
except: | |
alert(text='Login Failed', title='DiscordAutoReply') | |
else: | |
# user_token = prompt(text='Enter User Token', title='DiscordAutoReply').replace('"', '').strip() | |
user_token = "MzgyNzM4NDI0OTc0NjcxODcz.Xo_Ptg.TO_0H5LEO9OvlXJfZDrGaMzPevQ" | |
try: | |
client.run(user_token, bot=False) | |
except: | |
alert(text='Login Failed', title='DiscordAutoReply') | |
alert(text='Program Ended', title='DiscordAutoReply') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment