/autopublisher

A module to auto-publish messages sent in news channels

Primary LanguageTypeScript

autorole

Made by proudparrot2

If you haven't used Pylon Modules before, or are confused by what's in this README, please read our guide repository

Installation

  1. Make a new file in the Pylon Studio Editor called modules/autopublisher.ts, and add the contents of module.ts to it.
  2. Add this configuration to your config.ts file:
const autopublisher = {
  channels: ['channel 1', 'channel 1'],
}; export { autopublisher };

channels is an array of the channel IDs you want messages to be published in. IDs must be news channels, or the module will error.

  1. Append this to your main.ts file
import 'modules/autopublisher' 

When you save (CTRL/CMD + S), the module should be enabled!

If you need help with this module, please join our support server!