-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite with hikari
#135
Rewrite with hikari
#135
Conversation
discord-bot/noxfile.py
Outdated
import nox | ||
from nox.sessions import Session | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use pre-commit .. please do not add other project-specific style enforcement tools!
@@ -0,0 +1,406 @@ | |||
# -*- coding: utf-8 -*- | |||
"""Example plugins for reference. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this 406 lines example file in the project? Could you maybe link this in a readme?
We will keep this PR open until we hit feature parity. |
Laion ai main
discord-bot/bot/extensions/tasks.py
Outdated
@lightbulb.implements(lightbulb.SlashCommand, lightbulb.PrefixCommand) | ||
async def task_dm(ctx: lightbulb.Context): | ||
"""Request a task from the backend.""" | ||
await ctx.respond("Please complete the task in your DMs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these hard-coded message strings should ideally be moved outside the main code files for people to edit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. API settings should be read from conf and I am still not sure about the large example file. Is this something special that you wrote specific for the project or is it something which is on the net and we could simply link to it? Currently it looks like a bit of junk (e.g. we also do not include full manual and examples to all other libs we use).
The comments that I made regarding the messages, external string-table/templates etc. could be addressed later after merging this. We should review the overall interaction concept first.
About the example file, it’s something I wrote to help new contributors get up to speed quickly with hikari. There are some examples online, but they are spread all over the place. I want to include it somewhere, even if that is in the project wiki or a gist. |
I think the ideal way would be to put it into a gist, or maybe you already have it somewhere in an open repo, then link to that in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, ready for bot replacement.
This is a basic structure for the discord bot. None of the features have been implemented yet.