Skip to content
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

Added a starboard clone as an example #178

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Piecuuu
Copy link

@Piecuuu Piecuuu commented Jul 29, 2024

Notice

  • I understand the code that I have edited, and have the means
    to test it before making changes to Concord.

What?

I added a starboard clone as an example.

Why?

By adding a more complex example, users can learn about the more complicated side of Concord with an example.

How?

Made an example.

Testing?

It works on many machines. I've not yet found any risks, untested conditions or edge cases.

Screenshots

Anything Else?

We could add a guide for installing dependencies on OpenBSD or FreeBSD.

@ghost
Copy link

ghost commented Aug 6, 2024

This project looks like it's dead and no longer maintained.

@HackerSmacker
Copy link
Collaborator

Works on:

  • FreeBSD 13
  • OpenBSD 7.1
  • Windows 10 (Cygwin et al)
  • GNU/Linux circa Nov 2023
  • OS X 13.1
    No issues with Postgres. This bot is now running in production!

@Piecuuu
Copy link
Author

Piecuuu commented Aug 6, 2024

Great to hear that!

Copy link
Contributor

@ThePedroo ThePedroo left a comment

Choose a reason for hiding this comment

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

LGTM, just some few things. Overall you may want to make the comments more objective, but for me, as long as people can use it as example to build more advanced bots, it's awesome! Good job

@@ -52,4 +55,4 @@ echo:
clean:
@ rm -f $(STD_BOTS) $(VOICE_BOTS)

.PHONY: all echo clean
.PHONY: all echo clean starboard
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder, should we really put it aside?

discord_set_on_ready(client, &star_bot_on_ready);
discord_set_on_message_reaction_add(client, &star_main_handler);
discord_set_on_interaction_create(client, &star_commands_handler);
discord_run(client);
Copy link
Contributor

Choose a reason for hiding this comment

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

You are not cleaning up the client resources

examples/starboard/src/bot.c Show resolved Hide resolved
@ThePedroo
Copy link
Contributor

Oh, and you may want to run it against valgrind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants