Kraigie / nostrum

Elixir Discord Library
https://kraigie.github.io/nostrum/
MIT License
588 stars 125 forks source link

Expanding the example bot section #564

Open jchristgit opened 2 months ago

jchristgit commented 2 months ago

The current "example bot" listing on the README would benefit from having more bots than the existing ones listed. We have two small examples and bolt, which is very big and complex and might not be very easy to understand for beginners.

Expand the list with other bots from our community.

kshannoninnes commented 2 months ago

Looking for bots that use nosedrum? I could probably update my example bot to be slightly more detailed. It uses nosedrum, and has a couple regular simple commands, and I could make a slightly more complex command that uses a genserver to run tasks in the background. Should demonstrate enough to get someone up and running with nostrum and nosedrum, both with text commands and application commands.

jchristgit commented 2 months ago

Hey, thank you for reaching out, this sounds good!

I'm not sure you need to necessarily expand it to be more detailed if you don't need it. I'd be more than happy to include your bot as-is, all I'm looking for is to provide some more inspirations on how to build a simple bot with nostrum (and optionally nosedrum, like you do!).

Do you have a link?

kshannoninnes commented 2 months ago

It's very basic atm and only deals with Application Commands. I'm planning on adding Text Commands but it's on the backburner atm as I have a couple of uni assignments to finish off over the next 10 days.

https://github.com/kshannoninnes/sample_bot

Leastrio commented 2 months ago

Ive also got a pretty small bot (iirc <200 lines) that I could put up on github for you, although it doesnt use nosedrum and just has some basic command handling done by hand.

jchristgit commented 2 months ago

On Thu, May 02, 2024 at 12:36:19PM -0700, K. Shannon-Innes wrote:

https://github.com/kshannoninnes/sample_bot

Thank you! I've added this in PR #575.

jchristgit commented 2 months ago

On Thu, May 02, 2024 at 12:55:20PM -0700, Leastrio wrote:

Ive also got a pretty small bot (iirc <200 lines) that I could put up on github for you, although it doesnt use nosedrum and just has some basic command handling done by hand.

We have the example event consumer which I think does something similar, but maybe you have something more that you could add to it?