Skip to content

Commit

Permalink
Fix import errors in plugin and utils files
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkePilon committed Nov 20, 2023
1 parent b5d32da commit cc9ea7a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
5 changes: 4 additions & 1 deletion lodestone/plugin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import lodestone
from discord import Embed
import datetime
from discord import SyncWebhook
try:
from discord import SyncWebhook
except:
pass
from rich.console import Console
from rich.progress import Progress
import asyncio
Expand Down
6 changes: 4 additions & 2 deletions lodestone/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import discord
import requests
import structlog
from rich.console import Console
Expand All @@ -7,7 +6,10 @@
console = Console()

def llm(input: str, data = ""):
import g4f
try:
import g4f
except:
pass
_providers = [
g4f.Provider.Bing,
g4f.Provider.GptGo,
Expand Down
13 changes: 8 additions & 5 deletions lodestone_compass/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import discord
from discord import ApplicationContext as Context
from discord import Embed
from discord.ui import Modal, InputText
from discord import InputTextStyle, Interaction
try:
import discord
from discord import ApplicationContext as Context
from discord import Embed
from discord.ui import Modal, InputText
from discord import InputTextStyle, Interaction
except:
pass
from dotenv import load_dotenv
from os import environ
from javascript import eval_js as js_eval
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lodestone"
version = "0.0.34"
version = "0.0.35"
description = "🤖 Create Minecraft bots with a powerful, stable, and high level Python API."
authors = [
{ name = "Silke Pilon", email = "[email protected]" },
Expand Down

0 comments on commit cc9ea7a

Please sign in to comment.