Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
legifrance-bot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leger
legifrance-bot
Commits
17ef2ab2
Commit
17ef2ab2
authored
Dec 11, 2018
by
Jean-Benoist Leger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7dba720f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
bot.conf
bot.conf
+1
-1
bot.py
bot.py
+3
-1
legifrance.conf
legifrance.conf
+2
-0
No files found.
bot.conf
View file @
17ef2ab2
...
...
@@ -2,4 +2,4 @@ server_name = irc.crans.org
server_port
=
6667
nickname
=
legifrance
remain_time
=
300
chans
=
"#flood"
,
"#
legibot
"
chans
=
"#flood"
,
"#
general"
,
"#crans"
,
"#legifrance
"
bot.py
View file @
17ef2ab2
...
...
@@ -261,7 +261,9 @@ class MmBot(irc.IRCClient):
else
:
txt
=
self
.
codes
.
get_content
(
codename
,
article
)
if
not
txt
is
None
:
self
.
msg
(
channel
,
'{%s}:
\n
%s'
%
(
form
,
txt
))
self
.
msg
(
channel
,
'{%s}'
%
form
)
for
mline
in
txt
.
split
(
'
\n
'
):
self
.
msg
(
channel
,
mline
)
used_view
[(
channel
,
codename
,
article
)]
=
time
.
time
()
m
=
re
.
sub
(
reg
,
''
,
m
,
1
)
...
...
legifrance.conf
View file @
17ef2ab2
...
...
@@ -14,9 +14,11 @@ CRoute = LEGITEXT000006074228
CAssur
=
LEGITEXT000006073984
CEnergie
=
LEGITEXT000023983208
CE
=
LEGITEXT000006070239
CGCT
=
LEGITEXT000006070633
[
textids
]
LCEN
=
JORFTEXT000000801164
LoiInfoLib
=
JORFTEXT000000886460
Loi81LibPresse
=
LEGITEXT000006070722
Constitution
=
LEGITEXT000006071194
DecretEnsCachan
=
JORFTEXT000023375575
4
nov2014
=
LEGITEXT000029707254
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment