Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Programm-Info-Bot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Stein
Programm-Info-Bot
Commits
baaadbbf
Commit
baaadbbf
authored
6 years ago
by
Tilman Vatteroth
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
ssh://git.ufc.tu-dortmund.de:10022/UFC-O-Matic/programminfobot
parents
816b4812
5cd98714
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
telegram_bot.py
+1
-1
1 addition, 1 deletion
telegram_bot.py
twitter_bot.py
+1
-1
1 addition, 1 deletion
twitter_bot.py
with
4 additions
and
2 deletions
.gitignore
0 → 100644
+
2
−
0
View file @
baaadbbf
virtualenv/
__pycache__
This diff is collapsed.
Click to expand it.
telegram_bot.py
+
1
−
1
View file @
baaadbbf
...
@@ -84,4 +84,4 @@ if args.doit is True:
...
@@ -84,4 +84,4 @@ if args.doit is True:
bot
=
telepot
.
Bot
(
"
247551569:AAHpTb4pR8Vq8FlEWYC3O8cOD2OIzQKADyQ
"
)
# UFC-Do-Bot
bot
=
telepot
.
Bot
(
"
247551569:AAHpTb4pR8Vq8FlEWYC3O8cOD2OIzQKADyQ
"
)
# UFC-Do-Bot
bot
.
sendMessage
(
telegram_recv
,
text
,
parse_mode
=
"
markdown
"
,
disable_web_page_preview
=
True
)
bot
.
sendMessage
(
telegram_recv
,
text
,
parse_mode
=
"
markdown
"
,
disable_web_page_preview
=
True
)
else
:
else
:
print
(
"
\n
--doit wu
rd
e
nicht
gesetzt. Programm endet hier
"
)
print
(
"
\n
Programm läuft im Vorschaumodus. Es wi
rd nicht
s an Telegram abgesendet.
"
)
This diff is collapsed.
Click to expand it.
twitter_bot.py
+
1
−
1
View file @
baaadbbf
...
@@ -85,5 +85,5 @@ if args.doit is True:
...
@@ -85,5 +85,5 @@ if args.doit is True:
print
(
"
\n
Schick Nachricht an Twitter
"
)
print
(
"
\n
Schick Nachricht an Twitter
"
)
api
.
update_with_media
(
"
image.png
"
,
text
,
file
=
image
)
api
.
update_with_media
(
"
image.png
"
,
text
,
file
=
image
)
else
:
else
:
print
(
"
\n
--doit
w
u
rd
e
nicht
gesetzt. Programm endet hier
"
)
print
(
"
\n
Programm läuft im Vorschaumodus. Es
w
i
rd nicht
s an Twitter abgesendet.
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment