Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Branch deploycalendar #32

Open
wants to merge 30 commits into
base: personalized_new_repo
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5826a88
Merge pull request #19 from indocom/personalized_new_repo
CommanderW324 Oct 17, 2021
46cd105
Delete and unique Key
CommanderW324 Oct 17, 2021
71b6c46
Deploying
CommanderW324 Oct 17, 2021
0e4176b
Updated Requirements.txt
CommanderW324 Oct 17, 2021
0094436
Change to http webhook
CommanderW324 Oct 17, 2021
a3c7707
Reminder Calendar
CommanderW324 Oct 20, 2021
fd1df2a
Add event
nixonwidjaja Oct 24, 2021
367e7b4
Add event
nixonwidjaja Oct 24, 2021
e9c945c
Add events
nixonwidjaja Oct 25, 2021
e28fd8c
Reminder
nixonwidjaja Oct 25, 2021
5a97f45
Fixed DropBox API
CommanderW324 Dec 5, 2021
9252f1f
Merge branch 'main' into delete_deploy
CommanderW324 Dec 7, 2021
2409d80
Merge pull request #21 from indocom/delete_deploy
CommanderW324 Dec 7, 2021
efda500
Deploy time
CommanderW324 Dec 7, 2021
3be58bc
Requirements.txt
CommanderW324 Dec 10, 2021
ba91716
Fixed Requirements
CommanderW324 Dec 10, 2021
1f8590d
Cleaned up some parts of the code & Deploying
CommanderW324 Dec 12, 2021
b78886b
Try Credentails Deployment
CommanderW324 Dec 12, 2021
df2288f
Try Again
CommanderW324 Dec 12, 2021
baa9437
Try
CommanderW324 Dec 12, 2021
a2a583c
Auth
CommanderW324 Dec 12, 2021
96a809d
Added Requirements
CommanderW324 Dec 12, 2021
27191ef
Fixed Requirements and Main
CommanderW324 Dec 12, 2021
68f0c75
Try Agian
CommanderW324 Dec 12, 2021
7606868
JSon fix
CommanderW324 Dec 12, 2021
af6085d
Import statement
CommanderW324 Dec 12, 2021
a0e789f
Trying
CommanderW324 Dec 12, 2021
eb2f873
GoogleCredentials
CommanderW324 Dec 12, 2021
1b3e581
Cleaning up code
CommanderW324 Dec 12, 2021
433322a
Merge
CommanderW324 Dec 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
*.pyc
*.pyc
*.json
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# pinus-telebot
# pinus-telebot

Steps to set-up development:
1. Get a Bot-API-Token from BotFather in Telegram
2. Get Dropbox API Token from Dropbox Account
3.
19 changes: 9 additions & 10 deletions csv_handler.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
import csv

#read CSV from file, stores it in dictionary with key of row number and value of list of the row values.
def readCSVfromFile(csv_file_path) :
repo_data = dict()
storage = dict()
with open(csv_file_path) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
line_count = 0
for row in csv_reader:
if line_count > 0 :
repo_data[line_count - 1] = row;
storage[line_count - 1] = row;
line_count += 1
print(f'Processed {line_count} lines.')
return repo_data

def writeToCSV(csv_file_path, repo_data) :
return storage
#Write into CSV file with the fieldname parameter being the first row
def writeToCSV(csv_file_path, storage, fieldname) :
with open(csv_file_path, mode='w', newline='') as csv_file:
writer = csv.writer(csv_file, delimiter=',')
length = len(repo_data)
fieldname = ['chat_id', 'owner_name', 'repo_url']
length = len(storage)
writer.writerow(fieldname)
for i in range(length):
writer.writerow(repo_data[i]);
for i in storage:
writer.writerow(storage[i])



Expand Down
1 change: 1 addition & 0 deletions events.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2021-12-12T21:00:00+08:00[Telebot] Pinus Tech Sprint Meeting
7 changes: 7 additions & 0 deletions events_subscription.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
id,keyword
1728246253,telebot
1728246253,pinus
1141961290,pinus
176037276,pinus
176037276,telebot
176037276,something
3 changes: 2 additions & 1 deletion repo_list.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
chat_id,owner_name,repo_url
176037276,Albertsutz,https://github.com/indocom/gapura
176037276,Albertsutz,https://github.com/indocom/lumina
176037276,Albertsutz,https://github.com/indocom/pinus-telebot
176037276,Albertsutz,https://github.com/indocom/pinus-client
1141961290,Cwd324,https://github.com/indocom/pinus-telebot
1141961290,Cwd324,http://github.com/indocom/pinus-client
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
python-telegram-bot==12.7
dropbox
requests
requests-oauthlib==1.3.0
google-api-core==2.0.1
google-api-python-client==2.22.0
google-auth==2.1.0
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.4.6
oauth2client

881 changes: 0 additions & 881 deletions sample.txt

This file was deleted.

Loading