2019-12-15 22:46:05 -09:00

12 lines
341 B
Python

from discord.ext.commands.view import StringView
class MyStringView(StringView):
def skip_string(self, string):
strlen = len(string)
if self.buffer[self.index:self.index + strlen].casefold() == string:
self.previous = self.index
self.index += strlen
return True
return False