mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-21 21:44:19 +00:00
Display the bot's username instead of "greed" in the starting message
This commit is contained in:
parent
1ecc874061
commit
faaeb08773
1 changed files with 2 additions and 2 deletions
4
core.py
4
core.py
|
@ -39,7 +39,7 @@ def main():
|
||||||
# Test the specified token
|
# Test the specified token
|
||||||
log.debug("Testing bot token...")
|
log.debug("Testing bot token...")
|
||||||
try:
|
try:
|
||||||
bot.get_me()
|
me = bot.get_me()
|
||||||
except telegram.error.Unauthorized:
|
except telegram.error.Unauthorized:
|
||||||
logging.fatal("The token you have entered in the config file is invalid. Fix it, then restart greed.")
|
logging.fatal("The token you have entered in the config file is invalid. Fix it, then restart greed.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
@ -58,7 +58,7 @@ def main():
|
||||||
next_update = None
|
next_update = None
|
||||||
|
|
||||||
# Notify on the console that the bot is starting
|
# Notify on the console that the bot is starting
|
||||||
log.info("greed is starting!")
|
log.info(f"@{me.username} is starting!")
|
||||||
|
|
||||||
# Main loop of the program
|
# Main loop of the program
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue