def execute_command(self, command):
from modules.bot import bot_msg
print("Link:", self.request)
youtube_id = self.get_link_id(self.request)
print("ID:", youtube_id)
# if(database.db_add_song_request(youtube_id, self.user)):
response = self.get_song_request(youtube_id)
bot_msg(response)
# send to db:
# user, id, timestamp, position (get this on insert)
# test stuff
# ws = create_connection("ws://localhost:3001", subprotocols=["echo-protocol"])
# print("Sending 'Hello world!'")
# ws.send("Hello, world!")
评论列表
文章目录