SongRequest.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:kritzbot-legacy 作者: kritzware 项目源码 文件源码
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!")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号