Fixed bidding, while not being in raid (Nolonger throws an error)
Added default alias !list for !loot (bebot like) Changed the layout of !notes, its more compact now. fixed !count in the rare case of an empty private channel
This commit is contained in:
@@ -33,11 +33,11 @@ class NotesController:
|
||||
cnt += alt_cnt
|
||||
|
||||
if alt_cnt:
|
||||
blob += "\n<header2>%s</header2>\n" % alt.name
|
||||
blob += f"\n<header2>{alt.name}</header2>\n"
|
||||
for row in data:
|
||||
blob += "%s %s\n\n" % (row.note, self.text.make_tellcmd("Remove", "notes remove %d" % row.id))
|
||||
blob += f"» {row.note} {self.text.make_tellcmd('Remove', f'notes remove {row.id:d}')}\n"
|
||||
|
||||
return ChatBlob("Notes for %s (%d)" % (alts[0].name, cnt), blob)
|
||||
return ChatBlob(f"Notes for {alts[0].name} ({cnt:d})", blob)
|
||||
|
||||
@command(command="notes", params=[Const("add"), Any("note")], access_level="member",
|
||||
description="Add a note")
|
||||
@@ -56,7 +56,7 @@ class NotesController:
|
||||
[note_id])
|
||||
|
||||
if not note:
|
||||
return f"Could not find note with ID <highlight>{note_id:d}</highlight>."
|
||||
return f"Could not find note with ID <highlight>{note_id}</highlight>."
|
||||
|
||||
if self.account_service.get_main(request.sender.char_id).char_id \
|
||||
!= self.account_service.get_main(note.char_id).char_id:
|
||||
@@ -64,4 +64,4 @@ class NotesController:
|
||||
|
||||
self.db.exec("DELETE FROM notes WHERE id = ?", [note_id])
|
||||
|
||||
return f"Note with ID <highlight>{note_id:d}</highlight> deleted successfully."
|
||||
return f"Note with ID <highlight>{note_id}</highlight> deleted successfully."
|
||||
|
||||
Reference in New Issue
Block a user