Skip to content

Commit 624fb05

Browse files
committed
mattermostdriver -> mattermostautodriver
1 parent 0c925e2 commit 624fb05

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mmpy_bot/driver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
from pathlib import Path
44
from typing import Dict, List, Optional, Sequence, Union
55

6-
import mattermostdriver
6+
import mattermostautodriver
77
from aiohttp.client import ClientSession
88

99
from mmpy_bot.threadpool import ThreadPool
1010
from mmpy_bot.webhook_server import WebHookServer
1111
from mmpy_bot.wrappers import Message, WebHookEvent
1212

1313

14-
class Driver(mattermostdriver.Driver):
14+
class Driver(mattermostautodriver.Driver):
1515
user_id: str = ""
1616
username: str = ""
1717

1818
def __init__(self, *args, num_threads=10, **kwargs):
19-
"""Wrapper around the mattermostdriver Driver with some convenience functions
19+
"""Wrapper around the mattermostautodriver Driver with some convenience functions
2020
and attributes.
2121
2222
Arguments:

mmpy_bot/plugins/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55

66
import click
7-
import mattermostdriver
7+
import mattermostautodriver
88

99
from mmpy_bot.function import listen_to
1010
from mmpy_bot.plugins.base import Plugin
@@ -65,7 +65,7 @@ async def hello_ephemeral(self, message: Message):
6565
permissions."""
6666
try:
6767
self.driver.reply_to(message, "hello sender!", ephemeral=True)
68-
except mattermostdriver.exceptions.NotEnoughPermissions:
68+
except mattermostautodriver.exceptions.NotEnoughPermissions:
6969
self.driver.reply_to(
7070
message, "I do not have permission to create ephemeral posts!"
7171
)

0 commit comments

Comments
 (0)