Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 506457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:42:12+00:00 2026-05-13T06:42:12+00:00

My friend and I are writing an C# IRC Bot that will allow users

  • 0

My friend and I are writing an C# IRC Bot that will allow users to extend it’s capabilities via plugins. We need it so that each command will be able to have its own permissions. So that only a user on a specific level or above could execute the command. We had a hard time deciding how to do this.

The permissions system would be 1-10. 1 being the least privileged and 10 being the most. Each user would be assigned a 1-10 permission. Each command would also assign itself a required permission level. My question essentially is: How could I make a per-command permission system with plugins being able to have multiple commands within them.

I was hoping the good people of Stack Overflow could help me. Please bear with me as this is the first question I’ve asked here. Any help will be greatly appreciated! Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:42:12+00:00Added an answer on May 13, 2026 at 6:42 am

    that would definitely work, another way is the concept of ‘capabilities’. each user has a list of capabilities such as ‘update-user’, ‘delete-user’, ‘download-file’, etc. the list is unlimited. you can grant users capabilities and each function can check against the required list it needs

    if (!checkCaps(‘shell-cmd’, ‘google’, ‘open-url’)) sendError(‘sorry, no perms’)

    roles can be defined which aggregate a set of permissions, like ‘guest’, ‘user’, ‘manager’, ‘admin’ etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My friend and I are writing an IRC C# bot, and we are looking
I'm writing a silly program in python for a friend that prints We are
I've got a little game that a friend and I are writing in Java.
I'm writing a photo gallery webapp for a friend's wedding and they want a
I'm writing a small app for my friend's business, and thought I'd take the
Sorry in advance if this not 'SO'-ish enough--- I have a tech writing friend
I'm writing a web application (PHP) for my friend and have decided to use
I'm writing an application in C# (it's very basic, for a friend of mine),
Me and some friends are writing a MORPG in Java, and we would like
I'm working on writing a kernel, and I have a few friends working with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.