-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot.py
100 lines (82 loc) · 2.76 KB
/
bot.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 asyncio
import random
import datetime
import youtube_dl
import time
import traceback
import dice
import logging
import pyfiglet
import os
from discord import Member
from discord import Guild
client = commands.Bot(command_prefix = '/')
players = {}
@client.event
async def on_ready():
print('----------------------')
print("""\
o | | |
,---.,---..,---| |---.,---.|---
| ,---||| | | || ||
` `---^``---' `---'`---'`---'
""")
print(f'Bot={client.user}')
print('Ready to raid when you are ')
print('----------------------')
await client.change_presence(status=discord.Status.idle, activity=discord.Activity(type=discord.ActivityType.watching, name="porn"))
@client.command(pass_context=True)
async def raid(ctx):
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
await ctx.send('@everyone')
@client.command(pass_context=True)
async def ping(ctx):
time_1 = time.perf_counter()
await ctx.trigger_typing()
time_2 = time.perf_counter()
ping = round((time_2-time_1)*1000)
await ctx.send(f"ping= {ping}")
@client.command()
async def logout(ctx):
await client.logout()
@client.command(pass_context=True)
async def clear(ctx, amount=500):
await ctx.channel.purge(limit=amount)
await ctx.send('Deleted 500 messages or more ;)')
print('Deleted 500 messages or more ;)')
@client.command(pass_context=True)
async def github(ctx):
await ctx.send('https://github.com/synurr/discord-raid')
print('Sent github link')
while 1:
print(" ")
try:
print("please enter your token")
client.run(input("> "))
except Exception:
print("the token was incorrect")
#make sure to install all the refrences using "pip install %refrence%
#for example, pip install logging
#print(f'{client.user}')
#installing pyfiglet is optional, basically that lets me convert normal text to ascii, there will be a file called raid(compatibility-version).py that doesnt print any ascii :)