Fix line-endings; Increase portability; Add speedtyper.py

This commit is contained in:
olari
2019-05-26 23:05:28 +03:00
parent 661a5984a3
commit 63a1b4f501
33 changed files with 1447 additions and 1341 deletions

View File

@@ -1,26 +1,27 @@
#!/usr/bin/env python3
# deadsimple discord bot
import discord
import asyncio
client = discord.Client()
async def task():
await client.wait_until_ready()
while not client.is_closed:
server = client.get_channel('channel id')
await client.send_message(server, 'message')
await asyncio.sleep(60) # time to sleep
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
client.loop.create_task(task())
client.run('username', 'password')
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# deadsimple discord bot
import discord
import asyncio
client = discord.Client()
async def task():
await client.wait_until_ready()
while not client.is_closed:
server = client.get_channel('channel id')
await client.send_message(server, 'message')
await asyncio.sleep(60) # time to sleep
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
client.loop.create_task(task())
client.run('username', 'password')