Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e59df3c

Browse filesBrowse files
committed
fix file names and imports
1 parent 443f8dd commit e59df3c
Copy full SHA for e59df3c

File tree

3 files changed

+10
-9
lines changed
Filter options

3 files changed

+10
-9
lines changed
File renamed without changes.

‎pgml-apps/discord-bot/ingest_data.ipynb renamed to ‎pgml-apps/discord-bot/ingest.ipynb

Copy file name to clipboardExpand all lines: pgml-apps/discord-bot/ingest.ipynb
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": 2,
66
"metadata": {},
77
"outputs": [
88
{
@@ -11,22 +11,22 @@
1111
"True"
1212
]
1313
},
14-
"execution_count": 1,
14+
"execution_count": 2,
1515
"metadata": {},
1616
"output_type": "execute_result"
1717
}
1818
],
1919
"source": [
2020
"# Importing libraries\n",
21-
"from discord_bot import Bot\n",
21+
"from bot import Bot\n",
2222
"from dotenv import load_dotenv\n",
2323
"import os\n",
2424
"load_dotenv()"
2525
]
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 2,
29+
"execution_count": 3,
3030
"metadata": {},
3131
"outputs": [],
3232
"source": [
@@ -38,7 +38,7 @@
3838
},
3939
{
4040
"cell_type": "code",
41-
"execution_count": 3,
41+
"execution_count": 4,
4242
"metadata": {},
4343
"outputs": [
4444
{
@@ -52,7 +52,7 @@
5252
{
5353
"data": {
5454
"application/vnd.jupyter.widget-view+json": {
55-
"model_id": "77f93020910146d0968c1ce96e28044f",
55+
"model_id": "2d12b5b007a043029a0a24d3f4923702",
5656
"version_major": 2,
5757
"version_minor": 0
5858
},
@@ -89,7 +89,7 @@
8989
{
9090
"data": {
9191
"application/vnd.jupyter.widget-view+json": {
92-
"model_id": "599c5fce48014b0b8515d90ec6522252",
92+
"model_id": "1ae490d74aa84c0db42c30daeaab5775",
9393
"version_major": 2,
9494
"version_minor": 0
9595
},

‎pgml-apps/discord-bot/start_bot.py renamed to ‎pgml-apps/discord-bot/start.py

Copy file name to clipboardExpand all lines: pgml-apps/discord-bot/start.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Importing libraries
2-
from discord_bot import Bot
2+
from bot import Bot
33
from dotenv import load_dotenv
44
import os
55
load_dotenv()
@@ -10,9 +10,10 @@
1010
collection_name = os.getenv("COLLECTION_NAME")
1111
markdown_folder_path = os.getenv("CONTENT_PATH")
1212
discord_token = os.getenv("DISCORD_TOKEN")
13+
channel_name = os.getenv("DISCORD_CHANNEL")
1314

1415
## initialize bot
1516
pgml_bot = Bot(conninfo=pg_connection_string)
1617

1718
## start discord bot
18-
pgml_bot.start(collection_name, discord_token)
19+
pgml_bot.start(collection_name, discord_token, channel_name)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.