我正在尝试制作一个自动化的Twitter机器人,我总是会收到一条错误,说“丢失;在声明之前。(第1行,文件”代码“)”这是我的代码:
package nu.glen.yourpufflebot
import nu.glen.followbackbot.{
BeHaveDoKeywordPrefixResponder,
GerrundKeywordPrefixResponder,
PastTenseKeywordPrefixResponder
}
class YourPuffleGerrundResponder extends GerrundKeywordPrefixResponder {
override def combine(gerrund: String, rest: String) = "Your puffle's %s%s".format(gerrund, rest)
}
class YourPufflePastTenseResponder extends PastTenseKeywordPrefixResponder {
override def combine(verb: String, rest: String) = "Your puffle %s%s".format(verb, rest)
}
class YourPuffleBeHaveDoResponder extends BeHaveDoKeywordPrefixResponder {
override def combine(verb: String, rest: String) = "Your puffle %s%s".format(verb, rest)
}
答案 0 :(得分:1)
肯定不是javascript,这是应用程序脚本使用的。