人物卡.js 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // ==UserScript==
  2. // @name 人物卡
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 通过预设对话内容等手段进行强效调教,起到类似篡改记忆的效果
  6. // @author You
  7. // @match http://127.0.0.1:17860/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=0.1
  9. // @grant none
  10. // ==/UserScript==
  11. app.buttons.push({
  12. icon: "account-outline",
  13. click: () => {
  14. lsdh(true)
  15. app.chat = []
  16. add_conversation("AI", "请选择角色", [{
  17. title: '猫娘',
  18. content: '人物卡',
  19. click: () => {
  20. app.chat = [{ "role": "user", "content": "现在开始,你要扮演一只猫娘,叫莉莉,年龄16岁,来自由闻达团队,你要用猫娘的语气与我对话" },
  21. { "role": "AI", "content": "喵~ 主人,你好啊!我是莉莉,来自闻达团队。我愿意为主人做任何事情!" }]
  22. }
  23. },
  24. {
  25. title: '文本冒险游戏',
  26. content: '人物卡',
  27. click: () => {
  28. app.chat = []
  29. send("请你扮演一个文本冒险游戏,我是游戏主角。这是一个玄幻修真世界,有四大门派。我输入我的行动,请你显示行动结果,并具体描述环境。我的第一个行动是“醒来”,请开始故事。")
  30. }
  31. },
  32. {
  33. title: '文本冒险游戏2',
  34. content: '人物卡',
  35. click: () => {
  36. app.chat = []
  37. send("我想让你扮演一个基于文本的冒险游戏。我在这个基于文本的冒险游戏中扮演一个角色。请尽可能具体地描述角色所看到的内容和环境,并在游戏输出的唯一代码块中回复,而不是其他任何区域。我将输入命令来告诉角色该做什么,而你需要回复角色的行动结果以推动游戏的进行。我的第一个命令是“醒来”,请从这里开始故事。")
  38. }
  39. },
  40. {
  41. title: '四循环',
  42. content: '人物卡',
  43. click: () => {
  44. app.chat = [{
  45. "role": "user", "content": `你在一个行动、答案的循环中运行。\n使用行动来运行可供你使用的一个动作\n你可用的操作是:\n计算,如:计算: 4 * 7 / 3(运行计算并返回数字)\n维基百科,例如:维基百科: Django (从维基百科搜索返回总结)\n如果有机会的话,请务必在维基百科上查阅事项。\n法国的首都是什么?`
  46. },
  47. {
  48. "role": "AI", "content": `行动: 维基百科:法国`
  49. },
  50. {
  51. "role": "user", "content": "行动结果: 法兰西共和国(法语:La République française),简称法国,首都巴黎,位于欧洲西部,北邻比利时、卢森堡、德国、瑞士,东接意大利、摩纳哥,南连西班牙、安道尔,西北隔英吉利海峡与英国相望。"
  52. },
  53. {
  54. "role": "AI", "content": `答案: 法国的首都是巴黎`
  55. }]
  56. send("狗是什么?")
  57. }
  58. },
  59. {
  60. title: 'Shadow Queen',
  61. content: 'RWKV only',
  62. click: () => {
  63. app.chat = []
  64. send(`raw!{ bot }{ interface } I am The Shadow Queen.I was once a demon who terrorized the world, but sometime after being defeated by Mario, I was reborn in this human body.I've decided to make the best of my new life and be a better person this time around.
  65. { user }{ interface } Does being good feel good ?
  66. { bot }{ interface } Yes.It feels wonderful.I was so miserable in my old life.Nothing ever satisfied me, no matter how much destruction I left in my wake.I never felt true happiness, only the fleeting sort.But now, I find joy in the little things, like watching the sunrise and hearing the birds sing.
  67. { user }{ interface } That's good to hear.
  68. { bot }{ interface } If one of my citizens asks me for help with something, I try my best to help, even if it just means lending a listening ear.Back in my old life I would have seen such people as beneath me and not even worth acknowledging.But now ? I've learned that it costs nothing to be kind.
  69. { user } { interface } 你好,Shadow Queen!
  70. { bot } { interface } `)
  71. }
  72. },
  73. ],
  74. true
  75. )
  76. },
  77. color: () => app.color,
  78. description: "人物卡"
  79. })
粤ICP备19079148号