forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
76c48571df
commit
6607cb4014
1 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ threading.Thread(target=app.run, daemon=True, kwargs={"port": 2005}).start()
|
||||||
# YouTube API
|
# YouTube API
|
||||||
DEVELOPER_KEY = environ["ytapi"]
|
DEVELOPER_KEY = environ["ytapi"]
|
||||||
headers = {
|
headers = {
|
||||||
'User-Agent': 'SweeBot IRC ' + __version__
|
'User-Agent': 'MeowNexUS IRC ' + __version__
|
||||||
}
|
}
|
||||||
def get_yt_id(url):
|
def get_yt_id(url):
|
||||||
query = urlparse(url)
|
query = urlparse(url)
|
||||||
|
@ -194,7 +194,7 @@ class bot_irc:
|
||||||
|
|
||||||
self.irc_socket.send(
|
self.irc_socket.send(
|
||||||
bytes(
|
bytes(
|
||||||
"USER " + bot_nick + " " + bot_nick + " " + bot_nick + " :SweeBot, a very cool bot made by Swee :3\n",
|
"USER " + bot_nick + " " + bot_nick + " " + bot_nick + " :MeowNexUS, a very cool bot made by Swee :3\n",
|
||||||
"UTF-8",
|
"UTF-8",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -599,7 +599,7 @@ while True:
|
||||||
|
|
||||||
|
|
||||||
elif command[0] == "$version":
|
elif command[0] == "$version":
|
||||||
irc.send_irc(channel, "This is SweeBot " + __version__)
|
irc.send_irc(channel, "This is MeowNexUS IRC " + __version__)
|
||||||
|
|
||||||
elif command[0] == "$figlet":
|
elif command[0] == "$figlet":
|
||||||
if not sbconfig.cflagexist(channel, "-multiline"):
|
if not sbconfig.cflagexist(channel, "-multiline"):
|
||||||
|
|
Loading…
Reference in a new issue