Karma commited on
Commit
67967b1
·
1 Parent(s): 66b4dc9

Update __main__.py

Browse files
Files changed (1) hide show
  1. Mikobot/__main__.py +11 -0
Mikobot/__main__.py CHANGED
@@ -435,6 +435,16 @@ async def gitsource_callback(update: Update, context: ContextTypes.DEFAULT_TYPE)
435
  )
436
 
437
 
 
 
 
 
 
 
 
 
 
 
438
  async def Miko_about_callback(update: Update, context: ContextTypes.DEFAULT_TYPE):
439
  query = update.callback_query
440
  if query.data == "Miko_":
@@ -756,6 +766,7 @@ def main():
756
 
757
  function(CommandHandler("settings", get_settings))
758
  function(CallbackQueryHandler(settings_button, pattern=r"stngs_"))
 
759
 
760
  function(CallbackQueryHandler(Miko_about_callback, pattern=r"Miko_"))
761
  function(CallbackQueryHandler(gitsource_callback, pattern=r"git_source"))
 
435
  )
436
 
437
 
438
+ async def repo(update: Update, context: ContextTypes.DEFAULT_TYPE):
439
+ source_link = "https://github.com/Infamous-Hydra/YaeMiko"
440
+ message_text = f"*Here is the link for the public source repo*:\n\n{source_link}"
441
+
442
+ await context.bot.send_message(chat_id=update.effective_chat.id,
443
+ text=message_text,
444
+ parse_mode=ParseMode.MARKDOWN,
445
+ disable_web_page_preview=False)
446
+
447
+
448
  async def Miko_about_callback(update: Update, context: ContextTypes.DEFAULT_TYPE):
449
  query = update.callback_query
450
  if query.data == "Miko_":
 
766
 
767
  function(CommandHandler("settings", get_settings))
768
  function(CallbackQueryHandler(settings_button, pattern=r"stngs_"))
769
+ function(CommandHandler('repo', repo))
770
 
771
  function(CallbackQueryHandler(Miko_about_callback, pattern=r"Miko_"))
772
  function(CallbackQueryHandler(gitsource_callback, pattern=r"git_source"))