Skip to content

Commit

Permalink
@everyone and more flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Greenpilot4 committed Dec 1, 2020
1 parent c9760df commit 89478f4
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from discord.ext import commands
from colorama import Fore, init
import json
import time
import asyncio

init()

Expand All @@ -10,30 +10,38 @@
token = data['token']

print(Fore.RED + """\
██████╗ ██╗ ██╗ ██████╗ ███████╗████████╗
██╔════╝ ██║ ██║██╔═══██╗██╔════╝╚══██╔══╝
██║ ███╗███████║██║ ██║███████╗ ██║
██║ ██║██╔══██║██║ ██║╚════██║ ██║
╚██████╔╝██║ ██║╚██████╔╝███████║ ██║
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝
██████╗ ██╗ ██╗ ██████╗ ███████╗████████╗ ██████╗ ██╗███╗ ██╗ ██████╗
██╔════╝ ██║ ██║██╔═══██╗██╔════╝╚══██╔══╝ ██╔══██╗██║████╗ ██║██╔════╝
██║ ███╗███████║██║ ██║███████╗ ██║ ██████╔╝██║██╔██╗ ██║██║ ███╗
██║ ██║██╔══██║██║ ██║╚════██║ ██║ ██╔═══╝ ██║██║╚██╗██║██║ ██║
╚██████╔╝██║ ██║╚██████╔╝███████║ ██║ ██║ ██║██║ ╚████║╚██████╔╝
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝
""" + Fore.RESET)

bot = commands.Bot(command_prefix=".", self_bot=True)
bot = commands.Bot(command_prefix="*!*", self_bot=True)

victim = input("Please enter who you would like to ping: ")
victim = str(input("Please enter who you would like to ping: "))
victimChannel = int(input("Please enter where you would like to ping (channel ID): "))
pingInterval = int(input("Please enter how often you would to ping (in seconds): "))
repeats = int(input("Please enter how many times you would like to ping: "))

if victim == "@everyone" or victim == "everyone":
user = "@everyone"
elif len(victim) == 18:
user = "<" + "@" + victim + ">"
elif len(victim) == 19:
user = "<" + victim + ">"
else:
print("Invalid User!")

@bot.event
async def on_ready():
counter = 0
while counter < repeats:
channel = bot.get_channel(victimChannel)
user = "<" + victim + ">"
msg = await channel.send(user)
await msg.delete()
time.sleep(pingInterval)
await asyncio.sleep(pingInterval)
counter += 1

bot.run(token, bot=False)
Expand Down

0 comments on commit 89478f4

Please sign in to comment.