Skip to content

Commit

Permalink
Now sending the link properly
Browse files Browse the repository at this point in the history
  • Loading branch information
helioloureiro committed Jul 15, 2024
1 parent 4a14f34 commit 7303b00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stallmanbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# pip3 install pyTelegramBotAPI


__version__ = "Wed Jun 26 08:40:30 PM CEST 2024"
__version__ = "Mon Jul 15 01:05:26 PM CEST 2024"

START_TIME = time.ctime()

Expand Down Expand Up @@ -79,6 +79,7 @@
HOME = os.environ.get('HOME')
PIDFILE = f"{HOME}/.stallmanbot.pid"
PAUTAS = f"{HOME}/canalunixloadon/pautas"
PAUTAS_URL = "https://github.com/helioloureiro/canalunixloadon/tree/master/pautas"
IMGDIR = f"{HOME}/motivational"
SCRIPTHOME = f"{HOME}/homemadescripts"
FOFODB = f"{HOME}/fofondex.db"
Expand Down Expand Up @@ -1207,7 +1208,7 @@ def add_sugestao(msg, user):
debug("Lendo pautas")
msg = "O backlog de pautas está grande demais.\n" + \
"Então aqui segue o link pra mesma pra evitar flood:\n" + \
get_last_pauta()
PAUTAS_URL + "/" + get_last_pauta()

elif re.search("^/addpauta", cmd.text):
debug("/addpauta called")
Expand Down

0 comments on commit 7303b00

Please sign in to comment.