Skip to content

Commit

Permalink
mattermostdriver -> mattermostautodriver
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed Aug 22, 2022
1 parent d079c8f commit 2a46e4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mmpy_bot/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
from pathlib import Path
from typing import Dict, List, Optional, Sequence, Union

import mattermostdriver
import mattermostautodriver
from aiohttp.client import ClientSession

from mmpy_bot.threadpool import ThreadPool
from mmpy_bot.webhook_server import WebHookServer
from mmpy_bot.wrappers import Message, WebHookEvent


class Driver(mattermostdriver.Driver):
class Driver(mattermostautodriver.Driver):
user_id: str = ""
username: str = ""

def __init__(self, *args, num_threads=10, **kwargs):
"""Wrapper around the mattermostdriver Driver with some convenience functions
"""Wrapper around the mattermostautodriver Driver with some convenience functions
and attributes.
Arguments:
Expand Down
4 changes: 2 additions & 2 deletions mmpy_bot/plugins/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

import click
import mattermostdriver
import mattermostautodriver

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

0 comments on commit 2a46e4a

Please sign in to comment.