Skip to content

seanmamasde/debt_collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debt_collector

A little self-made debt collector for Line group chat

Setting Up

  • Have a config.py file which contains your CHANNEL_ACCESS_TOKEN, CHANNEL_SECRET, MYSELF (your user id in Line) and GROUP (your group id in Line) to begin with
  • Fire up ngrok server by running ngrok http 5000
  • Run python ./main.py to get the bot working
  • In your Line Dev Console, change the webhook url to whatever ngrok gives you and add /callback at the end, like: https://d5d1-220-132-157-246.ngrok.io/callback
  • You're good to go

Side Note

  • Ngrok server without an auth token WILL EXPIRE in around 2 hours, if you want to keep it running, make sure to register an account at ngrok.com and add the auth token beforehand
  • To figure out what your user id and group id is in Line, see official documentation
  • This project is based off this article cus I am too lazy to figure it all out by myself from scratch. It could be a little bit outdated as of the time of coding (the article is already 3yrs old). Probably won't change anyways it if not necessary, since it's deprecated not unsupported, so just let it be

About

here to collect ur $

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages