Skip to content

Commit

Permalink
chore: housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish committed Jan 16, 2024
1 parent d0ee0f9 commit 08ac982
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/MessagesLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import BasePlugin from '~/_boilerplate'

export default class MessagesLogger extends BasePlugin {
constructor(public ctx: Context) {
super(ctx, {}, 'msg-log')
super(ctx, {}, 'message')

ctx.on('message', (session) => {
const content = this.toSlimContent(session.content) || '[UNKNOWN]'
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/adapter-minecraft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ export class MinecraftBot<C extends Context> extends Bot<C, Config> {

stringifyContent(content: Fragment) {
const elements = h.parse(content.toString())
console.log('[[stringifyContent]] income:', content, elements)
return elements
.map((el) => {
console.log('[[stringifyContent]] map:', el)
if (el.type === 'text') return el
switch (el.type) {
default:
Expand Down
14 changes: 14 additions & 0 deletions src/plugins/sticker/喜报悲报/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@
* {
box-sizing: border-box;
}
body {
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Oxygen,
Ubuntu,
Cantarell,
'Open Sans',
'Helvetica Neue',
sans-serif;
}

main {
width: 100%;
Expand Down

0 comments on commit 08ac982

Please sign in to comment.