Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Barry
/
discordbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
64f770f2
authored
2016-01-13 01:26:14 +0000
by
Barry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added some formatting
1 parent
d47c384c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
hellsbot.py
members.json
hellsbot.py
View file @
64f770f
...
...
@@ -582,11 +582,11 @@ Stuff:
res
=
wolf
.
query
(
question
)
try
:
if
len
(
res
.
pods
):
pod_text
=
""
pod_text
=
[]
for
pod
in
res
.
pods
:
if
pod
.
text
:
pod_text
+=
pod
.
text
client
.
send_message
(
message
.
channel
,
'{} {}.'
.
format
(
message
.
author
.
mention
(),
byteify
(
pod_text
[:
150
0
])))
pod_text
.
append
(
pod
.
text
)
client
.
send_message
(
message
.
channel
,
'{} {}.'
.
format
(
message
.
author
.
mention
(),
byteify
(
"
\n
"
.
join
(
pod_text
)[:
199
0
])))
else
:
tagged_sent
=
pos_tag
(
question
.
replace
(
'?'
,
''
)
.
split
())
proper_nouns
=
[
word
for
word
,
pos
in
tagged_sent
if
pos
==
'NNP'
]
...
...
members.json
View file @
64f770f
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment