Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tool_matrixbot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
FOSS-AG
tool_matrixbot
Commits
5baf03bb
Commit
5baf03bb
authored
Feb 20, 2019
by
overflow
Browse files
Options
Downloads
Patches
Plain Diff
find room function now sends the date to the room instead of returning it
parent
446c7828
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
klo/klo.py
+2
-2
2 additions, 2 deletions
klo/klo.py
with
2 additions
and
2 deletions
klo/klo.py
+
2
−
2
View file @
5baf03bb
...
@@ -8,11 +8,11 @@ from bs4 import BeautifulSoup
...
@@ -8,11 +8,11 @@ from bs4 import BeautifulSoup
import
requests
import
requests
def
find_room
(
sender
,
message
):
def
find_room
(
sender
,
message
,
room
):
html
=
requests
.
get
(
"
https://foss-ag.de/
"
).
text
html
=
requests
.
get
(
"
https://foss-ag.de/
"
).
text
soup
=
BeautifulSoup
(
html
,
'
html.parser
'
)
soup
=
BeautifulSoup
(
html
,
'
html.parser
'
)
date
=
soup
.
find
(
id
=
"
ag-termine
"
).
find_next_sibling
(
"
div
"
).
find
(
"
ul
"
).
find
(
"
li
"
).
get_text
().
strip
()
date
=
soup
.
find
(
id
=
"
ag-termine
"
).
find_next_sibling
(
"
div
"
).
find
(
"
ul
"
).
find
(
"
li
"
).
get_text
().
strip
()
r
eturn
date
r
oom
.
sendText
(
date
)
def
main
():
def
main
():
...
...
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