Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
DiscordBot/AnnoyKieran.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
69 lines (49 sloc)
1.41 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord, logging, time, random, pickle, os | |
import alastair as a | |
#import karl as k | |
#import tomas as t | |
#import mateusz as m | |
#import mango as mngo | |
#from Kieran import GoogleEarth as e | |
TOKEN = 'NTAyMjI2MDYzNzYyMzkxMDUw.Dqk38g.KFDtyaHwMfRNK6RRUKYfpDj9L9Y' | |
global greetings | |
greetings = ["Hello", "Hi", "Yo"] | |
url = ["https://github.coventry.ac.uk/hollan84/DiscordBot"] | |
#Update test | |
#print(greetings) | |
#pickle.dump(url, open("url.txt",'wb') ) | |
#pickle.dump(greetings, open("greetings.txt",'wb') ) | |
client = discord.Client() | |
#print("502223039912476692".get_channel()) | |
@client.event | |
async def alastair(message): | |
if message.author == client.user: | |
return | |
# if not lstmsg: | |
# lstmsg = "" | |
#a.dab(message) | |
msg = "" | |
msg = msg + str(a.human(message)) | |
msg = msg + str(a.greetings(message)) | |
msg = msg + str(a.url(message)) | |
msg = msg + str(a.test(message)) | |
msg = msg + str(a.update(message)) | |
msg = msg + str(a.exitBot(message)) | |
msg = msg + str(a.code(message)) | |
msg = msg + str(a.gitHelp(message)) | |
msg = msg + str(a.temperature(message)) | |
msg = msg.strip('None') | |
print("MESSAGE" + msg) | |
#if not msg: | |
await client.send_message(message.channel, msg) | |
@client.event | |
async def on_message(message): | |
print(message.content) | |
while True: | |
await client.send_message(message.channel, "GoogleMaps! BD175BN") | |
#await kieran | |
#await | |
@client.event | |
async def on_ready(): | |
print('Logged in as ' + client.user.name) | |
client.run(TOKEN) |