diff --git a/src/matrixeventprocessor.ts b/src/matrixeventprocessor.ts
index f63b76b27549602869c4a7e2ee1b7a30f483fcb9..3a4abb9ca3d28de944f9397aed631ec2ba15c82d 100644
--- a/src/matrixeventprocessor.ts
+++ b/src/matrixeventprocessor.ts
@@ -84,4 +84,5 @@ export class MatrixEventProcessor {
         }
         return body;
     }
+
 }
diff --git a/src/messageprocessor.ts b/src/messageprocessor.ts
index 57e1cb35ad4af9a1d9c3b5151a155e9f73105eea..6dac01a2fc0eb803ce06111fb6144c835c6f1c51 100644
--- a/src/messageprocessor.ts
+++ b/src/messageprocessor.ts
@@ -150,7 +150,7 @@ export class MessageProcessor {
             const id = results[ID_EMOJI_REGEX_GROUP];
             try {
                 // we still fetch the mxcUrl to check if the emoji is valid=
-                const mxcUrl = await this.bot.GetEmoji(name, animated, id);
+                const mxcUrl = await this.opts.bot.GetEmoji(name, animated, id);
                 content = content.replace(results[0], `:${name}:`);
             } catch (ex) {
                 log.warn("MessageProcessor",
@@ -169,7 +169,7 @@ export class MessageProcessor {
             const name = escapeHtml(results[NAME_EMOJI_REGEX_GROUP]);
             const id = results[ID_EMOJI_REGEX_GROUP];
             try {
-                const mxcUrl = await this.bot.GetEmoji(name, animated, id);
+                const mxcUrl = await this.opts.bot.GetEmoji(name, animated, id);
                 content = content.replace(results[0],
                     `<img alt="${name}" src="${mxcUrl}" style="height: ${EMOJI_SIZE};"/>`);
             } catch (ex) {