Fix line-endings; Increase portability; Add speedtyper.py
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user