-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdankfarmer2.py
95 lines (79 loc) · 4.49 KB
/
dankfarmer2.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
import os
import discord
import asyncio
import random
import datetime
import colorama
from discord.ext import commands
from colorama import Fore
colorama.init()
prefix = ("s")
token = ("Enter your token")
os.system('cls')
dank = commands.Bot(command_prefix=prefix, self_bot=True, case_insensitive=True, intents=discord.Intents.all())
dank.remove_command('help')
start_time = datetime.datetime.utcnow()
@dank.event
async def on_ready():
print(f'''
{Fore.LIGHTMAGENTA_EX} ╔═══╗ ╔═══╗ ╔═╗ ╔╗ ╔╗╔═╗ {Fore.CYAN} ╔═══╗ ╔═══╗ ╔═══╗ ╔═╗╔═╗ ╔═══╗ ╔═══╗
{Fore.LIGHTMAGENTA_EX} ╚╗╔╗║ ║╔═╗║ ║║╚╗║║ ║║║╔╝ {Fore.CYAN} ║╔══╝ ║╔═╗║ ║╔═╗║ ║║╚╝║║ ║╔══╝ ║╔═╗║
{Fore.LIGHTMAGENTA_EX} ║║║║ ║║ ║║ ║╔╗╚╝║ ║╚╝╝ {Fore.CYAN} ║╚══╗ ║║ ║║ ║╚═╝║ ║╔╗╔╗║ ║╚══╗ ║╚═╝║
{Fore.LIGHTMAGENTA_EX} ║║║║ ║╚═╝║ ║║╚╗║║ ║╔╗║ {Fore.CYAN} ║╔══╝ ║╚═╝║ ║╔╗╔╝ ║║║║║║ ║╔══╝ ║╔╗╔╝
{Fore.LIGHTMAGENTA_EX} ╔╝╚╝║ ║╔═╗║ ║║ ║║║ ║║║╚╗ {Fore.CYAN}╔╝╚╗ ║╔═╗║ ║║║╚╗ ║║║║║║ ║╚══╗ ║║║╚╗
{Fore.LIGHTMAGENTA_EX} ╚═══╝ ╚╝ ╚╝ ╚╝ ╚═╝ ╚╝╚═╝ {Fore.CYAN}╚══╝ ╚╝ ╚╝ ╚╝╚═╝ ╚╝╚╝╚╝ ╚═══╝ ╚╝╚═╝
{Fore.MAGENTA} ╔═════════════════════════════════════════════════════════╗
{Fore.GREEN} Developer: {Fore.LIGHTRED_EX}Not a Nub | notanub@seized.email
{Fore.GREEN} User: {Fore.LIGHTRED_EX}{dank.user.name}#{dank.user.discriminator} ID: {dank.user.id}
{Fore.GREEN} Guilds: {Fore.LIGHTRED_EX}{len(dank.guilds)}
{Fore.GREEN} Prefix: {Fore.LIGHTRED_EX}{dank.command_prefix}
{Fore.GREEN} Version: {Fore.LIGHTRED_EX}2
{Fore.MAGENTA} ╚═════════════════════════════════════════════════════════╝
''' + Fore.RESET)
dank.play = True
if dank.play == True:
channel = dank.get_channel(Enter the channelid)
await channel.send("Autoplay is successfully bound to `" + channel.name + "`", delete_after=3)
else:
await ctx.send("Autoplay is successfully *disabled*", delete_after=3)
while dank.play is True:
try:
await asyncio.sleep(5)
await channel.send('pls beg')
await asyncio.sleep(5)
await channel.send('pls dep all')
await asyncio.sleep(5)
await channel.send('pls hunt')
await asyncio.sleep(5)
await channel.send('pls fish')
await asyncio.sleep(25)
await channel.send('pls dig')
except:
print("Couldn't Play. Did the channel get nuked or deleted?")
@dank.command()
async def uptime(ctx):
await ctx.message.delete()
now = datetime.datetime.utcnow()
delta = now - start_time
hours, remainder =divmod(int(delta.total_seconds()), 3600)
minutes, seconds = divmod(remainder, 60)
days, hours = divmod(hours, 24)
if days:
time_format = "**{d}** days, **{h}** hours, **{m}** minutes, and **{s}** seconds."
else:
time_format = "**{h}** hours, **{m}** minutes, and **{s}** seconds."
uptime_stamp = time_format.format(d=days, h=hours, m=minutes, s=seconds)
await ctx.send(uptime_stamp)
@dank.command(aliases=['logout', 'exit'])
async def shutdown(ctx):
await ctx.message.delete()
await dank.logout()
@dank.command(aliases=['credit'])
async def credits(ctx):
await ctx.message.delete()
embed = discord.Embed(color=0xd142b5, timestamp=ctx.message.created_at)
embed.set_author(name="𝘾𝙍𝙀𝘿𝙄𝙏𝙎")
embed.add_field(name="**Le Creator/Developer**", value="`Not a Nub#0729`")
embed.set_image(url='https://media.discordapp.net/attachments/761320654514683914/859264330940022804/image0_7.jpg?width=427&height=428')
await ctx.send(embed=embed)
dank.run(token, bot=False)