Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 69 lines (49 sloc) 1.41 KB
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)