[SockoBot] Add the functionality to edit permissions and functionality via Discord commands.

in utopian-io •  7 years ago  (edited)

logo

Today's task request has to do with addition of new functionality to SockoBot - a way to manage permissions, channels, commands and different variables that are now handled in the code with commands ($settings, $options, whatever you want to call them).

  • The code is entirely Python 3.
  • You may only save these settings directly to the discord server. No local files.
  • The functionality has to be editable by a single command taking in multiple arguments (ex. $options -permissions -roles).
  • The commands, by default, should only be accepted from a person that has admin rights on the server.
  • The command itself should be implemented as a separate function later called in the command() function already in my code.

Reasoning behind this request:

SockoBot tries to be the most open source friendly steem related bot out there. It can't achieve such things as long as it isn't good to go when you plug it into your discord server. Programmers should be able to edit the code as they wish, but regular users and community creators should be able to work with the bot immediately after adding it to the server.

Further rules:

The contribution has to be submitted as a pull request to SockoBot's github repo. It has to be properly commented in the code. The code has to be safe and any changes to the previous code won't be accepted unless they make sense and I allow it, or they are a separate contribution to my code unrelated to this task request.

Thank you for contributing to SockoBot's growth! You can find me on Discord at Jestemkioskiem#5566!



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @jestemkioskiem I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

  ·  7 years ago (edited)

Hi!
Can you give more info on what you need?
For example:

  • Manage permissions means, assign/remove a permission to/from a certain role?
  • Manage Channel means, create, rename, remove a channel?
  • By variables you mean, that hardcoded values should be able to be changed by commands executed by the admin user of the server?

One more thing, can you please give directions on how to store settings on a discord server, I tried to search fot this, but I couldn't find anything.
Thanks for your help in advance!