Skip to content

Commit

Permalink
refactored to use await-import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Supinic committed Jan 29, 2023
1 parent 50b3195 commit 41113c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat-modules/async-markov-experiment/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const definition = {

if (!this.data.markovs.has(context.channel.ID)) {
try {
const Markov = require("async-markov");
const { default: Markov } = await import("async-markov");
this.data.markovs.set(context.channel.ID, new Markov());
}
catch (e) {
Expand Down

0 comments on commit 41113c2

Please sign in to comment.