-
Notifications
You must be signed in to change notification settings - Fork 0
/
df -h
34 lines (26 loc) · 781 Bytes
/
df -h
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
import discord
from discord.ext import commands
import os
import time
import datetime
bot = commands.Bot(command_prefix="dontchangethisxxx1x")
client = discord.Client()
def linePrint():
lines = open('dfh.txt').read()
return lines
@client.event
async def on_ready():
print('[*] Bot Script is Logged in now ')
x = 69
while x > 1:
now = datetime.datetime.now()
heredate = ("[+] Alert pushed at:" + now.strftime("%Y-%m-%d %H:%M:%S"))
#print (heredate)
os.system("df -h >> dfh.txt")
text = linePrint()
channel = client.get_channel(channel id)
await channel.send("```"+ heredate+'\n'+ text +"```")
print (heredate)
time.sleep(13)
os.system("rm dfh.txt")
client.run('bot token')