-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add designer-excuses extension #16659
base: main
Are you sure you want to change the base?
Conversation
Congratulations on your new Raycast extension! 🚀 Due to our current reduced availability, the initial review may take up to 10-15 business days Once the PR is approved and merged, the extension will be available on our Store. |
This pull request has been automatically marked as stale because it did not have any recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you make this with AI?
You don't need applescript, why not use Clipboard.paste instead?
import { showHUD, Clipboard } from "@raycast/api";
import excuses from "./excuses"; // Adjust the path if necessary
// Main function to execute when the command is run
export default async function main() {
const randomExcuse: string = getRandomElement(excuses);
await Clipboard.paste(randomExcuse); // Copy to clipboard
await showHUD(`✅ Pasted excuse: ${randomExcuse}`); // Show HUD notification
}
// Function to get a random element from an array
const getRandomElement = (arr: string[]): string => arr[Math.floor(Math.random() * arr.length)];
Yes, used AI for this, could you help explain the the clipboard.paste please |
You can read about it here |
- update using clipboard api - update using clipboard api
@pernielsentikaer thanks for the link and I've updated using the clipboard api |
Description
Screencast
Checklist
npm run build
and tested this distribution build in Raycastassets
folder are used by the extension itselfREADME
are placed outside of themetadata
folder