mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-22 20:00:00 -05:00
Filter out messages with code blocks from being logged, v0.10.3
This commit is contained in:
parent
63dc799fef
commit
05fd866342
3
bot.py
3
bot.py
@ -24,7 +24,7 @@ from secret import email,pwd
|
|||||||
name = "Maki"
|
name = "Maki"
|
||||||
|
|
||||||
# bot version
|
# bot version
|
||||||
version = "v0.10.2"
|
version = "v0.10.3"
|
||||||
|
|
||||||
# text shown by .help command
|
# text shown by .help command
|
||||||
helptext = """I am a bot written in Python by MrDetonia
|
helptext = """I am a bot written in Python by MrDetonia
|
||||||
@ -283,6 +283,7 @@ def on_message(message):
|
|||||||
json.dump(history, fp)
|
json.dump(history, fp)
|
||||||
|
|
||||||
# log user messages for markov chains
|
# log user messages for markov chains
|
||||||
|
if '```' not in message.content:
|
||||||
with open('./markovs/' + message.author.id, 'a') as fp:
|
with open('./markovs/' + message.author.id, 'a') as fp:
|
||||||
fp.write('\n' + message.content)
|
fp.write('\n' + message.content)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user