Skip to content

Commit

Permalink
new ep
Browse files Browse the repository at this point in the history
  • Loading branch information
realtux committed Oct 25, 2020
1 parent 05bac0f commit 2ecf8c6
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 121/js/bot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const Discord = require('discord.js');
const bot = new Discord.Client();

bot.on('message', async message => {
// do something with message
console.log(message.content)

if (message.content == 'hello bottymcbotface') {
await message.channel.send('hello!')
}
});

bot.login('NzY5NzU4NTQ2MDkwMTMxNDc2.X5Trgg.Il75Uo9yz8XXyN-55xSN9Im0nw4');
5 changes: 5 additions & 0 deletions 121/js/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"discord.js": "12.4.1"
}
}
3 changes: 3 additions & 0 deletions 121/notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
769758546090131476
68608
https://discord.com/api/oauth2/authorize?client_id=769758546090131476&scope=bot&permissions=68608
14 changes: 14 additions & 0 deletions 121/python/bot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import discord
import asyncio

bot = discord.Client()

@bot.event
async def on_message(message):
# do something with message
print(message.content)

if message.content == 'hello bottymcbotface':
await message.channel.send('hello!')

bot.run('NzY5NzU4NTQ2MDkwMTMxNDc2.X5Trgg.Il75Uo9yz8XXyN-55xSN9Im0nw4')
1 change: 1 addition & 0 deletions 121/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
discord.py

0 comments on commit 2ecf8c6

Please sign in to comment.