I am developing new community-hub plugin for discourse where any registered users can create categories for their group / community. So the plugin should create categories itself in some criteria.
Can anyone help me to do this programmatically via plugin. And I welcome contributors for my new plugin 
أنا مهتم أيضًا بمعرفة كيفية إنشاء الفئات برمجياً!
تعديل: حسنًا، لقد تمكنت من حل المشكلة. ضع شيئًا مثل هذا في ملف plugin.rb الخاص بك:
@cat = Category.new({"user_id" => 1 ,"name" => "bla", "color" => "0088CC", "text_color" => "FFFFFF", "permissions" => {"everyone" => "1"},"required_tag_group_name" => "", "topic_featured_link_allowed" => "true", "search_priority" => "0"})
@cat.save
puts @cat.errors.inspect