Coder Social home page Coder Social logo

skylark95 / skylark95-cogs Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 54 KB

A collection of my personal cogs for use with Red-DiscordBot.

License: MIT License

Python 100.00%
cog cogs cogs-red-discordbot discord discord-py red-discordbot redbot redbot-cogs redbotv3

skylark95-cogs's Introduction

skylark95-cogs

A collection of my personal cogs for use with Red-DiscordBot.

To add cogs to your instance run: [p]repo add skylark95-cogs https://github.com/Skylark95/skylark95-cogs

ChatGPT

Send messages to ChatGPT

Command Description
chatgpt Send a message to ChatGPT.
getchatgptmodel Get the model for ChatGPT.
setchatgptmodel Set the model for ChatGPT.
togglechatgptmention Toggle messages to ChatGPT on mention.
togglechatgptreply Toggle messages to ChatGPT on reply.

Dnd

Interact with dnd5eapi.co

Command Description
classes List character classes
condition Get info about a condition
conditions List conditions
healing Get info about Potions of Healing
school Get info about a magic school
schools List magic schools
spell Get info about a spell
spells List spells by level and optionally class

Wingspan

Wingpsan game related commands

Command Description
expansion Time until Wingspan European expansion is released

skylark95-cogs's People

Contributors

skylark95 avatar thepeterg avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

skylark95-cogs's Issues

ChatGPT Load Error

Whant I try to load the chatgpt cog, I get the following error: TypeError: 'type' object is not subscriptable

chatgpt error


Traceback (most recent call last):
File "{HOME}/.local/share/Red-DiscordBot/data/jarvis/cogs/CogManager/cogs/chatgpt/chatgpt.py", line 103, in call_api
response = openai.ChatCompletion.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/.local/share/Red-DiscordBot/data/jarvis/cogs/Downloader/lib/openai/lib/_old_api.py", line 39, in __call__
raise APIRemovedInV1(symbol=self._symbol)
openai.lib._old_api.APIRemovedInV1:
You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.
You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface.
Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`
A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "{HOME}/redenv/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
await coro(*args, **kwargs)
File "{HOME}/.local/share/Red-DiscordBot/data/jarvis/cogs/CogManager/cogs/chatgpt/chatgpt.py", line 52, in on_message
await self.do_chatgpt(ctx)
File "{HOME}/.local/share/Red-DiscordBot/data/jarvis/cogs/CogManager/cogs/chatgpt/chatgpt.py", line 76, in do_chatgpt
reply = await self.call_api(
^^^^^^^^^^^^^^^^^^^^
File "{HOME}/.local/share/Red-DiscordBot/data/jarvis/cogs/CogManager/cogs/chatgpt/chatgpt.py", line 113, in call_api
except openai.error.APIError as e:
^^^^^^^^^^^^
AttributeError: module 'openai' has no attribute 'error' #57 [2024-03-04 18:44:25] ERROR [discord.client] Ignoring exception in on_message.     ``` 





had this error show up on chatgpt today with your cog 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.