Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Deepsource (#52)
Browse files Browse the repository at this point in the history
* Update plet.py

* pylint: auto fixes

* Update buttons.py

* pylint: auto fixes
  • Loading branch information
code-rgb authored Oct 23, 2020
1 parent 7cd0228 commit 8de3e70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions userge/plugins/bot/buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ async def create_button(msg: Message):
await msg.delete()


""" Create Buttons Through Inline Bots """


@userge.on_cmd(
"ibutton",
about={
Expand All @@ -79,6 +76,7 @@ async def create_button(msg: Message):
},
)
async def inline_buttons(message: Message):
""" Create Buttons Through Inline Bots """
if Config.BOT_TOKEN is None:
await message.err(
"First Create a Inline Bot via @Botfather to Create Buttons..."
Expand Down
3 changes: 1 addition & 2 deletions userge/plugins/fun/plet.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import io
import os
import textwrap

from PIL import Image, ImageDraw, ImageFont

from userge import Message, userge


# from ubot.micro_bot import ldr
@userge.on_cmd(
"slet",
about={
Expand Down Expand Up @@ -79,7 +79,6 @@ async def sticklet(message: Message):

# cleanup
try:
os.remove(font_file)
os.remove(image_name)
except Exception:
pass
Expand Down

1 comment on commit 8de3e70

@vercel
Copy link

@vercel vercel bot commented on 8de3e70 Oct 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.