-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
100 lines (90 loc) · 5.07 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import discord
from discord.ext import commands
import time
import asyncio
import smtplib
import datetime
from configparser import ConfigParser
import os
import sys
from colorama import Fore, init
init(convert=True)
os.system("title EmailSpammer!")
config = ConfigParser()
config.read('cfg.ini')
emale = config.get('SETTINGS', 'email')
pas = config.get('SETTINGS', 'password')
token = config.get('SETTINGS', 'bottoken')
def type(words):
words
for char in words:
time.sleep(0.001)
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(0.01)
bot = commands.Bot(command_prefix='!', description="peepee")
bot.remove_command("help")
@bot.event
async def on_ready():
await bot.change_presence(activity = discord.Streaming(name="9xc on github", url="https://www.twitch.tv/9xc"))
type(f""""{Fore.RED}
███████╗███╗ ███╗ █████╗ ██╗██╗
██╔════╝████╗ ████║██╔══██╗██║██║
█████╗ ██╔████╔██║███████║██║██║
██╔══╝ ██║╚██╔╝██║██╔══██║██║██║
███████╗██║ ╚═╝ ██║██║ ██║██║███████╗
╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝
███████╗██████╗ █████╗ ███╗ ███╗██╗
██╔════╝██╔══██╗██╔══██╗████╗ ████║██║
███████╗██████╔╝███████║██╔████╔██║██║
╚════██║██╔═══╝ ██╔══██║██║╚██╔╝██║╚═╝
███████║██║ ██║ ██║██║ ╚═╝ ██║██╗
╚══════╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝
""")
count = 10
#penusssss
@bot.command()
async def email(ctx,count=None,bomb_email=None,*,message=None):
if count == None or bomb_email == None or message == None:
await ctx.send("Format - !email [count] [email] [message] - e.g !email 10 [email protected] LoL!")
else:
x = int(count)
if x > 50:
await ctx.send("`That's too much. Do 50 or less!`")
else:
currentDT = datetime.datetime.now()
hour = str(currentDT.hour)
minute = str(currentDT.minute)
second = str(currentDT.second)
print(f"{Fore.RED}[{Fore.WHITE}{hour}:{minute}:{second}{Fore.RED}]{Fore.GREEN} [Command used] - {ctx.author.name}#{ctx.author.discriminator}:{Fore.RESET} !email {count} {bomb_email} {message}")
counting = int(0)
embed=discord.Embed(title=f"{counting}/{count}", url="https://github.com/9xc", color=0xff0000)
embed.set_author(name="Email sent!", url="https://github.com/9xc")
embed.set_thumbnail(url="https://cdn.iconscout.com/icon/free/png-256/gmail-30-722694.png")
embed.add_field(name=f'Sending "{message}"', value=f'**to {bomb_email}**', inline=False)
embed.set_footer(text=f"Requested by {ctx.author.name}#{ctx.author.discriminator}")
msg = await ctx.send(embed=embed)
for i in range(x):
mail = smtplib.SMTP('smtp.gmail.com',587) #you can put whatever smtp you wanna use
mail.ehlo()
mail.starttls()
mail.login(emale,pas)
mail.sendmail(emale,bomb_email,message)
mail.close()
currentDT = datetime.datetime.now()
hour = str(currentDT.hour)
minute = str(currentDT.minute)
second = str(currentDT.second)
print(f"{Fore.RED}[{Fore.WHITE}{hour}:{minute}:{second}{Fore.RED}]{Fore.GREEN} Message Sent:{Fore.RESET} {message} {Fore.GREEN}To {Fore.RESET}{bomb_email}")
counting = counting + 1
embed=discord.Embed(title=f"{counting}/{count}", url="https://github.com/9xc", color=0xff0000)
embed.set_author(name="Email sent!", url="https://github.com/9xc")
embed.set_thumbnail(url="https://cdn.iconscout.com/icon/free/png-256/gmail-30-722694.png")
embed.add_field(name=f'Sending "{message}"', value=f'**to {bomb_email}**', inline=False)
embed.set_footer(text=f"Requested by {ctx.author.name}#{ctx.author.discriminator}")
await msg.edit(embed=embed)
embed=discord.Embed(title="Please consider following!", url="https://github.com/9xc", color=0xff0000)
embed.set_author(name="Done spamming!", url="https://github.com/9xc")
embed.set_thumbnail(url="https://cdn.iconscout.com/icon/free/png-256/gmail-30-722694.png")
await msg.edit(embed=embed)
bot.run(token)