GithubHelp home page GithubHelp logo

andydragon / veroscripts Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 91.23 MB

Tool for generating the feature scripts for the snap hubs on VERO.

License: MIT License

C# 31.22% Shell 0.40% Swift 38.07% HTML 0.37% CSS 0.42% TypeScript 29.53%

veroscripts's Introduction

VERO Moderator Scripts

This application is used to autofill the moderator scripts for snap hub features on VERO. The application allows a moderator or admin to type in the user's alias, their membership level, their own alias and for a particular page (aka snap hub) and have the script generated. These can then be edited (edits are lost if the above information is changed!!) and copied to the clipboard and then posted on VERO.

The scripts are generated from a series of script templates with special markings for placeholders which will be autofilled with the information entered.

Some of the fields are stored in user preferences so when the application is restarted, it remembers the last values entered, the moderator/admin's alias, the page and their page staff level are all saved.

macOS Application

Screens shot of the macOS application

Windows Application

Screens shot of the Windows application

Template Notes

Template script locations

The template scripts are located in the 'Script Templates' folder, each template in a separate text file under a folder with the name of the hub. Here is an example of the three base template files:

Script Templates/longexposure/feature.template
Script Templates/longexposure/comment.template
Script Templates/longexposure/original post.template

These file names are fixed and should not be altered. If the folder for the hub does not have one of the files, the default script template in 'default' will be used.

First your hub provides a slightly different script for the first time a user is featured in your hub, you can provide the different script in a template with the prefix 'first ' prepended to the file name. For example, the snap_foggy hub has a different script for the comment:

Script Templates/foggy/first comment.template

Template placeholders

When editing templates, the follow autofill placeholders are available

Placeholder Description
%%PAGENAME%% The name of the page (hub) such as 'longexposure' or 'potd'
%%MEMBERLEVEL%% The member level of the user such as 'Artist', 'Member', 'VIP Gold Member'
%%USERNAME%% The user's alias such as 'andydragon'
%%YOURNAME%% Your alias as the person selecting the feature such as 'chefjane'
%%STAFFLEVEL%% Your staff member level such as 'Mod' or 'Admin'

As well as the autofill placeholders, manual edited placeholders are also available such as '[[LOCATION]]' or '[[SPECIES]]' or '[[USER NAME]]'. These are not filled in but when you copy the script, if there are any remaining manual placeholders, an alert will appear reminding you to fill them in before posting the script.

Editing the templates

When a team admin edits one of the files, a pull request needs to be created for the change and I (andydragon) will complete the pull request, update the .stringsdict and .xcstrings files and produce a new release for download with the updated templates.

If there are any questions or issues, log an issue in the 'Issues' tab (https://github.com/AndyDragon/VeroScripts/issues) and I will try to get an answer as quickly as possible.

Example template for the feature post

• #snap_%%PAGENAME%% •

⭐️ Featured %%MEMBERLEVEL%%: @%%USERNAME%% ⭐️
.
__________________________________
 ✨CONGRATULATIONS ✨
__________________________________
.
Selected by: @%%YOURNAME%%
%%STAFFLEVEL%% on @snap_%%PAGENAME%%
.
Join us in our fresh, creative and supportive community on VERO. Please follow @snap_community
.
CC Snap Community Owner
@snap_owner
.
Please check out @snap_kingdom for more of our Snap_community pages.
.
#snap_community
#vero
#verofamily
#verofriends

PAGE HASHTAGS
.
#photography #nightphotography #light #night  #longexpo
#longexposurephotography #lightjunkies #photo #silkwater #milkwater
#thunder #verofullframe #waterfall #milkyway #shutterspeed
.
 For internal use only!
#snap_%%PAGENAME%%_%%USERNAME%%
#snap_featured_%%USERNAME%%
.

veroscripts's People

Contributors

andydragon avatar wbadawy avatar prmunn avatar

Watchers

Lucian avatar  avatar  avatar

Forkers

wbadawy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.