Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
31 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,37 @@ | ||
import discord | ||
from discord.ext import commands | ||
|
||
client = commands.Bot(command_prefix = '.') | ||
client = discord.Client() | ||
|
||
token = 'Nzc2ODIzNzU0MDA0NDk2NDQ1.X66ffw.XOxA0IHsRdEBjkyvThwCo-DTCCM' | ||
|
||
|
||
#Lists | ||
greetings1 = ['hi','hello','hey','what\'s up','good morning','good afternoon', 'good evening'] | ||
responses1 = 'hey! hope you\'re having a good day, i\'m your your vacation chatbot, i will help you with finding holiday spot, let\'s start? ' | ||
|
||
|
||
|
||
|
||
@client.event | ||
async def on_ready(): | ||
print(" Bot is ready. ") | ||
print('We have logged in as {0.user}'.format(client)) | ||
|
||
|
||
@client.event | ||
async def on_message(message): | ||
|
||
messages = message.content.lower() | ||
|
||
|
||
if message.author == client.user: | ||
return | ||
|
||
if messages in greetings1: | ||
await message.channel.send(responses1) | ||
|
||
elif type(messages) == int or float: | ||
await message.channel.send('please dont use numbers') | ||
|
||
|
||
|
||
client.run("Nzc2ODIzNzU0MDA0NDk2NDQ1.X66ffw.mi9WO7Qp-TvByGQTBEsouxE6MGg") | ||
client.run(token) |