Rename credits
This commit is contained in:
parent
b36e64a259
commit
ba28694c3d
1 changed files with 3 additions and 3 deletions
6
wtf.py
6
wtf.py
|
|
@ -55,7 +55,7 @@ class WtfDB(yaboli.Database):
|
||||||
db.execute("UPDATE acronyms SET deleted = 1 WHERE acronym_id = ?", (acronym_id,))
|
db.execute("UPDATE acronyms SET deleted = 1 WHERE acronym_id = ?", (acronym_id,))
|
||||||
|
|
||||||
class Wtf:
|
class Wtf:
|
||||||
SHORT_DESCRIPTION = "A database of explanations for words, acronyms and initialisms"
|
SHORT_DESCRIPTION = "a database of explanations for words, acronyms and initialisms"
|
||||||
DESCRIPTION = (
|
DESCRIPTION = (
|
||||||
"'wtf' is a database of explanations for words, acronyms and initialisms."
|
"'wtf' is a database of explanations for words, acronyms and initialisms."
|
||||||
" It is inspired by the linux wtf program and uses its acronyms,"
|
" It is inspired by the linux wtf program and uses its acronyms,"
|
||||||
|
|
@ -67,7 +67,7 @@ class Wtf:
|
||||||
"!wtf detail <term> - shows more info about the term's explanations\n"
|
"!wtf detail <term> - shows more info about the term's explanations\n"
|
||||||
"!wtf delete <id> - delete explanation with corresponding id (look up the id using !wtf detail)\n"
|
"!wtf delete <id> - delete explanation with corresponding id (look up the id using !wtf detail)\n"
|
||||||
)
|
)
|
||||||
CREDITS = "Created by @Garmy using github.com/Garmelon/yaboli\n"
|
AUTHOR = "Created by @Garmy using github.com/Garmelon/yaboli\n"
|
||||||
|
|
||||||
RE_IS = r"\s*is\s+(\S+)\s*"
|
RE_IS = r"\s*is\s+(\S+)\s*"
|
||||||
RE_ADD = r"\s*add\s+(\S+)\s+(.*)"
|
RE_ADD = r"\s*add\s+(\S+)\s+(.*)"
|
||||||
|
|
@ -145,7 +145,7 @@ class Wtf:
|
||||||
|
|
||||||
class WtfBot(yaboli.Bot):
|
class WtfBot(yaboli.Bot):
|
||||||
SHORT_HELP = Wtf.SHORT_DESCRIPTION
|
SHORT_HELP = Wtf.SHORT_DESCRIPTION
|
||||||
LONG_HELP = Wtf.DESCRIPTION + Wtf.COMMANDS + Wtf.CREDITS
|
LONG_HELP = Wtf.DESCRIPTION + Wtf.COMMANDS + Wtf.AUTHOR
|
||||||
|
|
||||||
def __init__(self, nick, wtfdbfile, cookiefile=None):
|
def __init__(self, nick, wtfdbfile, cookiefile=None):
|
||||||
super().__init__(nick, cookiefile=cookiefile)
|
super().__init__(nick, cookiefile=cookiefile)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue