Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
49 additions
and
49 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,31 +1,31 @@ | ||
import discord | ||
import webbrowser | ||
import nltk | ||
import random | ||
from discord.ext import commands | ||
import asyncio | ||
|
||
TOKEN = 'NTA3NjMyNDUwMzkwODUxNTg1.Drzsew.lVbUm7WKIPrV56q_9LegdqZuXZo' | ||
|
||
client = commands.Bot(command_prefix = '?') | ||
|
||
@client.event | ||
async def on_ready(): | ||
print('"BOT ON DUTY"') | ||
|
||
@client.command | ||
async def test(ctx): | ||
await ctx.send('I heard you! {0}'.format(ctx.author)) | ||
|
||
@client.event | ||
async def message(message): | ||
|
||
if message.author.id == client.user.id: | ||
return | ||
|
||
if message.content.lower().startswith ('!math'): | ||
|
||
|
||
|
||
|
||
client.run(TOKEN) | ||
import discord | ||
import webbrowser | ||
import nltk | ||
import random | ||
from discord.ext import commands | ||
import asyncio | ||
|
||
TOKEN = 'NTA3NjMyNDUwMzkwODUxNTg1.Drzsew.lVbUm7WKIPrV56q_9LegdqZuXZo' | ||
|
||
client = commands.Bot(command_prefix = '?') | ||
|
||
@client.event | ||
async def on_ready(): | ||
print('"BOT ON DUTY"') | ||
|
||
@client.command | ||
async def test(ctx): | ||
await ctx.send('I heard you! {0}'.format(ctx.author)) | ||
|
||
@client.event | ||
async def message(message): | ||
|
||
if message.author.id == client.user.id: | ||
return | ||
|
||
if message.content.lower().startswith ('!math'): | ||
|
||
|
||
|
||
|
||
client.run(TOKEN) |
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
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
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
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