-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.py
125 lines (101 loc) · 3.67 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import discord, time, os, random
import re
#------------------------
if __name__ == "__main__":
token = ''
invite = ''
#------------------------
for item in [
'colorama',
'discord'
]:
os.system('pip install %s' % (item))
os
if True:
os.system('clear')
os
import colorama
from discord.ext import commands
from discord.ext import tasks
from replit import db
#-------------#
db['dmed'] = [] # Delete After You Run
#-------------#
bot = commands.Bot(
self_bot = True,
command_prefix = "j4j"
)
#-------------------------#
j4j_list = [
'j4j fast',
'j4j pls',
'j4jing, no bots',
'j4j anyone',
'j4j quickly',
'> j4j, 100 members',
'> j4j ',
'> **j4j** im not a bot'
]
#--------------------------#
#--------------------------#
@bot.event
async def on_ready():
print (
'%sdiscord%s.%sj4j%s | revamped by %sadolf%s + %sbongo%s' % (
colorama.Fore.RED,
colorama.Fore.RESET, colorama.Fore.BLUE, colorama.Fore.RESET,
colorama.Fore.WHITE, colorama.Fore.RESET, colorama.Fore.RED, colorama.Fore.RESET
)
)
while True:
for guild in bot.guilds:
guild
if True:
for channel in guild.channels:
channel
if any(
channel_name in channel.name for channel_name in [
'j4j',
]
):
try:
message = await channel.send(
random.choice(
j4j_list
)
)
if True:
print('[*] Message Sent (%s)' % (message.id))
print
except:
pass
time.sleep(10)
time
#--------------------------------------------------#
@bot.event
async def on_message(message):
if isinstance(
message.channel,
discord.channel.DMChannel
):
if message.author.id != bot.user.id:
if message.author.id not in db[
'dmed'
]:
await message.channel.send(
'**j4j** fast, you first, %s' % (
invite
)
)
#-#
if True:
db['dmed'] += [message.author.id]
if True:
print('[@] TARGET: %s | ACTION: Received Message' % (message.author))
print
#-#
else:
print('[!] TARGET: %s | Already Added, but you were DMED'% (message.author.name))
print
#----------------------------------------------------#
bot.run(token, bot = False)