Commit Graph

39 Commits

Author SHA1 Message Date
Ceda EI b808d36a7b Change messages. Not send 1 members in /all_chains 2018-07-06 15:02:09 +05:30
Ceda EI ee5b5a6ee9 Change format of pin message 2018-06-11 19:00:36 +05:30
Ceda EI 00ee8faec1 Fixed member exit function 2018-05-20 18:42:58 +05:30
Ceda EI 191139f1a0 Delete unnecessary exits from member_exit(); 2018-05-17 16:34:38 +05:30
Ceda EI 2c196ab7de Fix bug in new_member() 2018-05-17 15:13:18 +05:30
Ceda EI f27718a5d8 Add delete from DB and send message on member exit. 2018-05-17 04:00:53 +05:30
Ceda EI 115fec3375 Implemented /allchain 2018-04-25 14:31:42 +05:30
Ceda EI a71693c4a0 Fix call to wrong function 2018-04-23 19:44:51 +05:30
Ceda EI 87716a4dd3 Add /doesnotfollow 2018-04-23 19:40:20 +05:30
Ceda EI 01b2bb483d
Add hashtags to message 2018-04-19 21:33:56 +05:30
Ceda EI 9013fd972e Update to send message even if no changes. 2018-04-09 21:46:41 +05:30
Ceda EI 9f14bd823a Fix wrong variable name 2018-04-07 00:53:59 +05:30
Ceda EI 030b6c25c0 Add pin_message and pins message 2018-04-07 00:49:17 +05:30
Ceda EI 0c8294036a Fix leave causing 500. Fix welcome message syntax 2018-04-07 00:42:20 +05:30
Ceda EI ce347074ad Fix bug - new user not added to db.
Changed chat_id to id
2018-04-06 19:43:22 +05:30
Ceda EI 47b59abbd8 Added set follower to -1 if no follower found in bio. 2018-04-05 16:17:52 +05:30
Ceda EI ac2ff8925c Fix array being written instead of username to lastmember.php 2018-04-05 12:34:17 +05:30
Ceda EI 6c45e0e564 Revert "Add pin_message and pins message"
This reverts commit d8478eef11.
2018-04-05 12:31:40 +05:30
Ceda EI 4de3823361 Replace include with exec for /update 2018-04-05 12:25:52 +05:30
Ceda EI b255e40de5 Bug Fix 2018-04-05 12:09:08 +05:30
Ceda EI d8b9afc8fc Add disable notification to pin message. 2018-04-05 11:23:32 +05:30
Ceda EI d8478eef11 Add pin_message and pins message 2018-04-05 11:21:50 +05:30
Ceda EI ad73619959 Add /update 2018-04-05 11:04:45 +05:30
Ceda EI d49d6fa764 Add write last member. Add new_member function
The update file now writes the last member to lastmember.php. Added new_member function.
2018-04-04 20:54:10 +05:30
Ceda EI 6c4fa4848c Add structure for methods for member join and leave 2018-04-04 19:33:20 +05:30
Ceda EI 229a343ebd Add if clause to send warning if more than one user points to a user. 2018-04-04 16:13:55 +05:30
Ceda EI df78a02d3e Add base code for webhook.php
Added check_command, send_html, json decoding, and a loop to check for which command was called.
2018-04-04 15:41:35 +05:30
Ceda EI 7a69a179e9 Change send_code to send_text. Send chain length also. 2018-04-04 13:47:29 +05:30
Ceda EI 5b9cdd5b5a Bug Fixes, Add user exceptions, Add main body.
Added bug fixes for SQL queries. Added exceptions table in update_user_by_username function.
Added main body, the file now queries t.me for every user to check the integrity of the chain. Then finds the longest chain, converts it to string and compares it to last sent chain. If the chains aren't same, it sends it and saves it in its place.
2018-04-04 13:38:31 +05:30
Ceda EI 67ac825615 Add api_key.php to gitignore and add blank chain.php 2018-04-04 13:25:03 +05:30
Ceda EI 0c7e091a15 Update SQLDump for including exceptions table.
Added exceptions table with username and points_to fields.
2018-04-04 12:59:10 +05:30
Ceda EI 2b8ef44614 Add .gitignore to ignore mysql credentials. 2018-04-04 11:40:09 +05:30
Ceda EI 0c231b7865 Add update_user_by_username function
This function reads the latest user data from t.me and checks whom it links to. It then updates the database accordingly.
2018-04-04 10:30:58 +05:30
Ceda EI 90f69802cb Add chain_to_string function
This function turns the chain into a string that can be sent to the group
2018-04-03 20:15:12 +05:30
Ceda EI fedd816e73 Add get_longest_chain function and comments. 2018-04-03 20:02:23 +05:30
Ceda EI d8b8693a43 Remove reply from send_code function. 2018-04-03 19:23:53 +05:30
Ceda EI fa39901f8e Add update_chain.php and mysql_credentials.php.sample
Added send_code, get_chain_from_user functions. The get_chain_from_user generates a chain from a given user and returns an array in reverse sequential order.
2018-04-03 19:17:45 +05:30
Ceda EI 3cfd25ea10 Add sqldump for recreating database. 2018-04-03 17:54:04 +05:30
Ceda EI 0276728475
Initial commit 2018-04-03 17:44:59 +05:30